Bug 593867: removed nvidia check for forcing getProgramParameter() so it now returns 1 on any Mac OSX setup
authorDoug Sherk <dsherk@mozilla.com>
Thu, 01 Sep 2011 15:28:34 -0400
changeset 76409 651f1df3e9d72d0c84ad6e2ed53e75860634bfb4
parent 76408 f6180f12b7be01f56699b53d9d972d2092146232
child 76410 b9e81dedac488aa2173a96df2dc5163c670daaf8
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
bugs593867
milestone9.0a1
Bug 593867: removed nvidia check for forcing getProgramParameter() so it now returns 1 on any Mac OSX setup
content/canvas/src/WebGLContextGL.cpp
--- a/content/canvas/src/WebGLContextGL.cpp
+++ b/content/canvas/src/WebGLContextGL.cpp
@@ -2335,24 +2335,18 @@ WebGLContext::GetProgramParameter(nsIWeb
         }
             break;
         case LOCAL_GL_DELETE_STATUS:
         case LOCAL_GL_LINK_STATUS:
         case LOCAL_GL_VALIDATE_STATUS:
         {
             GLint i = 0;
 #ifdef XP_MACOSX
-            if (pname == LOCAL_GL_VALIDATE_STATUS &&
-                gl->Vendor() == gl::GLContext::VendorNVIDIA)
-            {
-                // See comment in ValidateProgram below.
-                i = 1;
-            } else {
-                gl->fGetProgramiv(progname, pname, &i);
-            }
+            // See comment in ValidateProgram below.
+            i = 1;
 #else
             gl->fGetProgramiv(progname, pname, &i);
 #endif
             wrval->SetAsBool(PRBool(i));
         }
             break;
 
         default: