Skip to content
Snippets Groups Projects
Commit cc20355f authored by David Sehnal's avatar David Sehnal
Browse files

Merge branch 'master' of https://github.com/molstar/molstar-proto into plugin

parents 9957492c 22a42682
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ const tmpPixel = new Uint8Array(1 * 4); ...@@ -57,6 +57,7 @@ const tmpPixel = new Uint8Array(1 * 4);
function fence(gl: WebGL2RenderingContext) { function fence(gl: WebGL2RenderingContext) {
return new Promise(resolve => { return new Promise(resolve => {
gl.finish()
const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0) const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0)
if (!sync) { if (!sync) {
console.warn('could not create a WebGL2 sync object') console.warn('could not create a WebGL2 sync object')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment