b=628800; [webgl] VALIDATE_STATUS should always be 1 on MacOS X; r=bjacob, a=b

This commit is contained in:
Vladimir Vukicevic 2011-01-25 14:23:55 -08:00
parent ff24947788
commit d8fb8ce6db

View File

@ -2085,7 +2085,18 @@ WebGLContext::GetProgramParameter(nsIWebGLProgram *pobj, PRUint32 pname, nsIVari
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);
}
#else
gl->fGetProgramiv(progname, pname, &i);
#endif
wrval->SetAsBool(PRBool(i));
}
break;