Nicolas Cannasse пре 11 година
родитељ
комит
3642853c8a
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      h3d/impl/GlDriver.hx

+ 4 - 0
h3d/impl/GlDriver.hx

@@ -91,7 +91,11 @@ class GlDriver extends Driver {
 	}
 	}
 
 
 	override function logImpl( str : String ) {
 	override function logImpl( str : String ) {
+		#if js
 		untyped console.log(str);
 		untyped console.log(str);
+		#else
+		Sys.println(str);
+		#end
 	}
 	}
 
 
 	override function begin(frame) {
 	override function begin(frame) {