Bug 837687 - Use a case-insensitive comparison for OpenGL extension names r=jgilbert
authorJames Willcox <jwillcox@mozilla.com>
Tue, 05 Feb 2013 13:02:17 -0500
changeset 120903 a9b703ded09cbbf000824f4aee538e1a4a2ebbfc
parent 120902 390d38eb966dc3d5f399b6e8fa18fdfc6a981e49
child 120904 fa18864fd67f365cebcfbc6de414ede5957341e2
push id24267
push userryanvm@gmail.com
push dateWed, 06 Feb 2013 00:24:04 +0000
treeherdermozilla-central@8ac096b24cb0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs837687
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 837687 - Use a case-insensitive comparison for OpenGL extension names r=jgilbert
gfx/gl/GLContext.h
--- a/gfx/gl/GLContext.h
+++ b/gfx/gl/GLContext.h
@@ -22,16 +22,17 @@
 #include "GLLibraryLoader.h"
 #include "gfxASurface.h"
 #include "gfxImageSurface.h"
 #include "gfxContext.h"
 #include "gfxRect.h"
 #include "gfx3DMatrix.h"
 #include "nsISupportsImpl.h"
 #include "prlink.h"
+#include "plstr.h"
 
 #include "nsDataHashtable.h"
 #include "nsHashKeys.h"
 #include "nsRegion.h"
 #include "nsAutoPtr.h"
 #include "nsThreadUtils.h"
 #include "GLContextTypes.h"
 #include "GLTextureImage.h"
@@ -1374,17 +1375,17 @@ public:
                 char* space = strchr(cur, ' ');
                 if (space) {
                     *space = '\0';
                 } else {
                     done = true;
                 }
 
                 for (int i = 0; extList[i]; ++i) {
-                    if (strcmp(cur, extList[i]) == 0) {
+                    if (PL_strcasecmp(cur, extList[i]) == 0) {
                         if (verbose)
                             printf_stderr("Found extension %s\n", cur);
                         extensions[i] = 1;
                     }
                 }
 
                 cur = space + 1;
             }