mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1255434 - Add getGLError after each draw call. r=jgilbert
--HG-- extra : commitid : 1xY2FYTIyik
This commit is contained in:
parent
727557d79f
commit
d19790a5a2
@ -170,12 +170,17 @@ function createDrawFunc(canvas) {
|
||||
}
|
||||
|
||||
gl.viewport(0, 0, canvas.width, canvas.height);
|
||||
checkGLError(prefix + "[viewport]");
|
||||
|
||||
preDraw(prefix);
|
||||
checkGLError(prefix + "[predraw]");
|
||||
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
||||
checkGLError(prefix + "[drawarrays]");
|
||||
postDraw(prefix);
|
||||
checkGLError(prefix + "[postdraw]");
|
||||
if (needCommitFrame) {
|
||||
gl.commit();
|
||||
checkGLError(prefix + "[commit]");
|
||||
}
|
||||
checkGLError(prefix);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user