فهرست منبع

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();