浏览代码

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

trethaller 6 年之前
父节点
当前提交
2d54b4036c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 	}