Selaa lähdekoodia

ensure no framebuffer is bound in waitForGpuCommandsCompleteSync

Alexander Rose 6 vuotta sitten
vanhempi
commit
3b2eab1cf9
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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)
 }