Skip to content

Commit 6c9c791

Browse files
author
Avaer Kazmer
authored
Merge pull request #771 from Palmer-JC/master
Fix WebGL 2
2 parents 4d06ed1 + e2a603d commit 6c9c791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/native-bindings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ bindings.nativeGl = (nativeGl => {
7373
bindings.nativeGl2 = (nativeGl2 => {
7474
function WebGL2RenderingContext(canvas) {
7575
const gl = new nativeGl2();
76-
_decorateGlIntercepts(gl);
77-
WebGLRenderingContext.onconstruct(gl, canvas);
76+
// _decorateGlIntercepts(gl); // this should not be needed; left as comment only
77+
bindings.nativeGl.onconstruct(gl, canvas);
7878
return gl;
7979
}
8080
for (const k in nativeGl2) {

0 commit comments

Comments
 (0)