瀏覽代碼

use src format for blur tmp

ncannasse 7 年之前
父節點
當前提交
da022c3ab6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/pass/Blur.hx

+ 1 - 1
h3d/pass/Blur.hx

@@ -104,7 +104,7 @@ class Blur extends ScreenFx<h3d.shader.Blur> {
 
 		var alloc = tmp == null;
 		if( alloc )
-			tmp = new h3d.mat.Texture(src.width, src.height, [Target]);
+			tmp = new h3d.mat.Texture(src.width, src.height, [Target], src.format);
 
 		if( values == null ) calcValues();