Bug 665070 - part 3: use GetAndClearError in WebGLContext::GetError - r=jrmuizel

This commit is contained in:
Benoit Jacob 2011-07-07 20:01:16 -04:00
parent 4bc4c1f507
commit f95fa9b753

View File

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