Browse Source

shader_debug_dump allow use sys from hxnodejs

Yuxiao Mao 7 months ago
parent
commit
16cb5938ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxsl/Cache.hx

+ 1 - 1
hxsl/Cache.hx

@@ -243,7 +243,7 @@ class Cache {
 
 
 		#if shader_debug_dump
 		#if shader_debug_dump
 		var shaderId = @:privateAccess RuntimeShader.UID;
 		var shaderId = @:privateAccess RuntimeShader.UID;
-		#if ( js && !sys )
+		#if ( js && !sys && !hxnodejs )
 		if( shaderId == 0 ) js.Syntax.code("window.shaders_debug_dump = [];");
 		if( shaderId == 0 ) js.Syntax.code("window.shaders_debug_dump = [];");
 		js.Syntax.code("window.shaders_debug_dump[{0}] = '';", shaderId);
 		js.Syntax.code("window.shaders_debug_dump[{0}] = '';", shaderId);
 		var dbg: { writeString: String->Void, close:Void->Void } = {
 		var dbg: { writeString: String->Void, close:Void->Void } = {