Explorar o código

Fix javascript error in GlDriver (#836)

Ryan Rohrer %!s(int64=5) %!d(string=hai) anos
pai
achega
d6a7ec792d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/impl/GlDriver.hx

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -188,7 +188,7 @@ class GlDriver extends Driver {
 			gl = cast canvas.getContextWebGL(options);
 		if( gl == null ) throw "Could not acquire GL context";
 		// debug if webgl_debug.js is included
-		if( js.Syntax.code('typeof')(untyped WebGLDebugUtils) != "undefined" ) {
+		if( js.Syntax.typeof(untyped WebGLDebugUtils) != "undefined" ) {
 			gl = untyped WebGLDebugUtils.makeDebugContext(gl);
 			glDebug = true;
 		}