mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=628800; [webgl] VALIDATE_STATUS should always be 1 on MacOS X; r=bjacob, a=b
This commit is contained in:
parent
ff24947788
commit
d8fb8ce6db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user