Bug 593867: removed nvidia check for forcing getProgramParameter() so it now returns 1 on any Mac OSX setup

This commit is contained in:
Doug Sherk 2011-09-01 15:28:34 -04:00
parent 8230e78d43
commit a32b0c9e31

View File

@ -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