Bug 1237194 - Fix getSyncParameter return error. r=jgilbert

This commit is contained in:
Ethan Lin 2016-01-06 01:29:00 +01:00
parent 37e896e0d7
commit 8f94d52859

View File

@ -125,7 +125,7 @@ WebGL2Context::GetSyncParameter(JSContext*, WebGLSync* sync, GLenum pname, JS::M
MakeContextCurrent();
gl->fGetSynciv(sync->mGLName, pname, 1, nullptr, &result);
retval.set(JS::Int32Value(result));
break;
return;
}
ErrorInvalidEnum("getSyncParameter: Invalid pname 0x%04x", pname);