From a32b0c9e31dc2b83a74e29e0fd2d6f1ff89e2269 Mon Sep 17 00:00:00 2001 From: Doug Sherk Date: Thu, 1 Sep 2011 15:28:34 -0400 Subject: [PATCH] Bug 593867: removed nvidia check for forcing getProgramParameter() so it now returns 1 on any Mac OSX setup --- content/canvas/src/WebGLContextGL.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/content/canvas/src/WebGLContextGL.cpp b/content/canvas/src/WebGLContextGL.cpp index 51d54845f518..055d80bbab29 100644 --- a/content/canvas/src/WebGLContextGL.cpp +++ b/content/canvas/src/WebGLContextGL.cpp @@ -2340,14 +2340,8 @@ WebGLContext::GetProgramParameter(nsIWebGLProgram *pobj, PRUint32 pname, nsIVari { 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