Browse Source

Add js preprocess to use webglpolygon extension

borisrp 5 months ago
parent
commit
f6c35c7eeb
1 changed files with 1 additions and 1 deletions
  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) {