Browse Source

use src format for blur tmp

ncannasse 7 years ago
parent
commit
da022c3ab6
1 changed files with 1 additions and 1 deletions
  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();