From 3b2eab1cf9b2f82a0071fb9cf9497b050ee9b82c Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Wed, 3 Apr 2019 15:54:23 -0700 Subject: [PATCH] ensure no framebuffer is bound in waitForGpuCommandsCompleteSync --- src/mol-gl/webgl/context.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mol-gl/webgl/context.ts b/src/mol-gl/webgl/context.ts index 2ec22c992..2bb18df68 100644 --- a/src/mol-gl/webgl/context.ts +++ b/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) } -- GitLab