Przeglądaj źródła

Fixed warning for JS (#833)

Sébastien Bénard 5 lat temu
rodzic
commit
50e0707ee5
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
 			gl = cast canvas.getContextWebGL(options);
 		if( gl == null ) throw "Could not acquire GL context";
 		if( gl == null ) throw "Could not acquire GL context";
 		// debug if webgl_debug.js is included
 		// debug if webgl_debug.js is included
-		untyped if( __js__('typeof')(WebGLDebugUtils) != "undefined" ) {
+		if( js.Syntax.code('typeof')(untyped WebGLDebugUtils) != "undefined" ) {
 			gl = untyped WebGLDebugUtils.makeDebugContext(gl);
 			gl = untyped WebGLDebugUtils.makeDebugContext(gl);
 			glDebug = true;
 			glDebug = true;
 		}
 		}