Ver código fonte

use src format for blur tmp

ncannasse 7 anos atrás
pai
commit
da022c3ab6
1 arquivos alterados com 1 adições e 1 exclusões
  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();