mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 665070 - part 6: update SynthesizeGLError - r=jrmuizel
This commit is contained in:
parent
097c045697
commit
d92db41f6a
@ -124,15 +124,13 @@ WebGLContext::SynthesizeGLError(WebGLenum err)
|
||||
// but if there isn't, then we need to check for a gl error
|
||||
// that may have occurred before this one and use that code
|
||||
// instead.
|
||||
|
||||
MakeContextCurrent();
|
||||
|
||||
if (mWebGLError == LOCAL_GL_NO_ERROR) {
|
||||
MakeContextCurrent();
|
||||
UpdateWebGLErrorAndClearGLError();
|
||||
|
||||
mWebGLError = gl->fGetError();
|
||||
|
||||
if (mWebGLError == LOCAL_GL_NO_ERROR)
|
||||
mWebGLError = err;
|
||||
}
|
||||
if (!mWebGLError)
|
||||
mWebGLError = err;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user