Explorar el Código

ensure no framebuffer is bound in waitForGpuCommandsCompleteSync

Alexander Rose hace 6 años
padre
commit
3b2eab1cf9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/mol-gl/webgl/context.ts

+ 1 - 0
src/mol-gl/webgl/context.ts

@@ -107,6 +107,7 @@ function waitForGpuCommandsComplete(gl: GLRenderingContext): Promise<void> {
 }
 
 function waitForGpuCommandsCompleteSync(gl: GLRenderingContext): void {
+    gl.bindFramebuffer(gl.FRAMEBUFFER, null)
     gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, tmpPixel)
 }