You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
72//webglUtils.resizeCanvasToDisplaySize(gl.canvas);7374// Tell WebGL how to convert from clip space to pixels75//gl.viewport(0, 0, gl.canvas.width, gl.canvas.height);7677// Clear the canvas.78//gl.clear(gl.COLOR_BUFFER_BIT);
drawScene() still clear history draw, do you know the reason?
Thank you.
The text was updated successfully, but these errors were encountered:
If you draw to the canvas (gl.drawXXX, gl.clear) then the browser marks that the canvas needs to be recompositied with the page. To do this either either makes a copy of the canvas or swaps the canvas's storage with another storage buffer (double buffered). After the browser has compositied the result it clears the canvas. It does this so that the result is consistent whether or not it copies or it swaps.
Hi, @greggman .
I found in this sample, when comment these lines
drawScene()
still clear history draw, do you know the reason?Thank you.
The text was updated successfully, but these errors were encountered: