فهرست منبع

Add js preprocess to use webglpolygon extension

borisrp 6 ماه پیش
والد
کامیت
f6c35c7eeb
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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) {