aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llwindow')
-rw-r--r--linden/indra/llwindow/GL/glh_extensions.h4
-rw-r--r--linden/indra/llwindow/llwindowsdl.cpp3
2 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llwindow/GL/glh_extensions.h b/linden/indra/llwindow/GL/glh_extensions.h
index 5b149c9..ce2865b 100644
--- a/linden/indra/llwindow/GL/glh_extensions.h
+++ b/linden/indra/llwindow/GL/glh_extensions.h
@@ -111,7 +111,9 @@ static const char* EatNonWhiteSpace(const char *str)
111int glh_init_extensions(const char *origReqExts) 111int glh_init_extensions(const char *origReqExts)
112{ 112{
113 // Length of requested extensions string 113 // Length of requested extensions string
114 /*
114 unsigned reqExtsLen; 115 unsigned reqExtsLen;
116 */
115 char *reqExts; 117 char *reqExts;
116 // Ptr for individual extensions within reqExts 118 // Ptr for individual extensions within reqExts
117 char *reqExt; 119 char *reqExt;
@@ -153,8 +155,8 @@ int glh_init_extensions(const char *origReqExts)
153 return TRUE; 155 return TRUE;
154 } 156 }
155 reqExts = strdup(origReqExts); 157 reqExts = strdup(origReqExts);
156 reqExtsLen = (S32)strlen(reqExts);
157 /* 158 /*
159 reqExtsLen = (S32)strlen(reqExts);
158 if (NULL == gGLHExts.mUnsupportedExts) 160 if (NULL == gGLHExts.mUnsupportedExts)
159 { 161 {
160 gGLHExts.mUnsupportedExts = (char*)malloc(reqExtsLen + 1); 162 gGLHExts.mUnsupportedExts = (char*)malloc(reqExtsLen + 1);
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp
index 58090b3..6717f7b 100644
--- a/linden/indra/llwindow/llwindowsdl.cpp
+++ b/linden/indra/llwindow/llwindowsdl.cpp
@@ -2518,9 +2518,10 @@ std::vector<std::string> LLWindowSDL::getDynamicFallbackFontList()
2518 sortpat = FcNameParse((FcChar8*) sort_order.c_str()); 2518 sortpat = FcNameParse((FcChar8*) sort_order.c_str());
2519 if (sortpat) 2519 if (sortpat)
2520 { 2520 {
2521 FcResult dummyResult;
2521 // Sort the list of system fonts from most-to-least-desirable. 2522 // Sort the list of system fonts from most-to-least-desirable.
2522 fs = FcFontSort(NULL, sortpat, elide_unicode_coverage, 2523 fs = FcFontSort(NULL, sortpat, elide_unicode_coverage,
2523 NULL, NULL); 2524 NULL, &dummyResult);
2524 FcPatternDestroy(sortpat); 2525 FcPatternDestroy(sortpat);
2525 } 2526 }
2526 2527