Explorar o código

ensure no framebuffer is bound in waitForGpuCommandsCompleteSync

Alexander Rose %!s(int64=6) %!d(string=hai) anos
pai
achega
3b2eab1cf9
Modificáronse 1 ficheiros con 1 adicións e 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)
 }