mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 665070 - part 3: use GetAndClearError in WebGLContext::GetError - r=jrmuizel
This commit is contained in:
parent
4bc4c1f507
commit
f95fa9b753
@ -2226,9 +2226,9 @@ WebGLContext::GetError(WebGLenum *_retval)
|
||||
{
|
||||
MakeContextCurrent();
|
||||
|
||||
// Always call glGetError to clear any pending
|
||||
// Always call GetAndClearError to clear any pending
|
||||
// real GL error.
|
||||
WebGLenum err = gl->fGetError();
|
||||
WebGLenum err = gl->GetAndClearError();
|
||||
|
||||
// mSynthesizedGLError has the first error that occurred,
|
||||
// whether synthesized or real; if it's not NO_ERROR, use it.
|
||||
|
Loading…
Reference in New Issue
Block a user