Bug 1255434 - Add getGLError after each draw call. r=jgilbert

--HG--
extra : commitid : 1xY2FYTIyik
This commit is contained in:
Morris Tseng 2016-04-13 16:53:26 +08:00
parent 727557d79f
commit d19790a5a2

View File

@ -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);
};