Explorar o código

Add js preprocess to use webglpolygon extension

borisrp hai 6 meses
pai
achega
f6c35c7eeb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/impl/GlDriver.hx

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -826,7 +826,7 @@ class GlDriver extends Driver {
 		#else
 
 		var fallback = true;
-		#if (haxe_ver >= 5)
+		#if (js && haxe_ver >= 5)
 		var extension:js.html.webgl.extension.WEBGLPolygonMode =  cast gl.getExtension("WEBGL_polygon_mode");
 		if(extension != null) {
 			if(wireframe) {