Browse Source

Add js preprocess to use webglpolygon extension

borisrp 6 tháng trước cách đây
mục cha
commit
f6c35c7eeb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {