Browse Source

ScreenFx: fix Std.string causing large string allocs on JS target

trethaller 6 years ago
parent
commit
2d54b4036c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/pass/ScreenFx.hx

+ 1 - 1
h3d/pass/ScreenFx.hx

@@ -15,7 +15,7 @@ class ScreenFx<T:h3d.shader.ScreenShader> {
 		this.shader = shader;
 		shaders = new hxsl.ShaderList(shader);
 		manager = new ShaderManager(output);
-		pass = new h3d.mat.Pass(Std.string(this), new hxsl.ShaderList(shader));
+		pass = new h3d.mat.Pass("screenfx", new hxsl.ShaderList(shader));
 		pass.culling = None;
 		pass.depth(false, Always);
 	}