From 9c8843e85ceae9f68c357593e6a0064fe6fd7b9a Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 11 Nov 2009 07:45:59 +0000 Subject: [PATCH] Fixed error in the "wave" effect of the shader sample git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1270 4e206d99-4929-0410-ac5d-dfc041789085 --- samples/bin/datas/shader/wave.sfx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bin/datas/shader/wave.sfx b/samples/bin/datas/shader/wave.sfx index 2d04763a..ec5aaf75 100644 --- a/samples/bin/datas/shader/wave.sfx +++ b/samples/bin/datas/shader/wave.sfx @@ -4,7 +4,7 @@ uniform vec2 offset; void main() { - vec2 texoffset = texture2D(wave, (gl_TexCoord[0].xy * offset).xy); + vec2 texoffset = vec2(texture2D(wave, (gl_TexCoord[0].xy * offset).xy)); texoffset -= vec2(0.5, 0.5); texoffset *= 0.05;