Skip to content

Commit e2a603d

Browse files
committed
Fix WebGL 2
1 parent 4d06ed1 commit e2a603d

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)