* tests/test-shader.c:

Fix edge-detect shader on ATI, thanks Gwenole Beauchesne
This commit is contained in:
Chris Lord 2008-06-30 14:38:10 +00:00
parent ac02680447
commit e0a36199b0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-06-30 Chris Lord <chris@openedhand.com>
* tests/test-shader.c:
Fix edge-detect shader on ATI, thanks Gwenole Beauchesne
2008-06-30 Matthew Allum <mallum@openedhand.com>
Bug 997 - automatic updates not working for named TFP pixmaps,

View File

@ -158,7 +158,7 @@ static ShaderSource shaders[]=
FRAGMENT_SHADER_VARS
"float get_avg_rel(sampler2D texB, float dx, float dy)"
"{"
" vec3 colorB = texture2D (texB, " TEX_COORD ".st + vec2(dx, dy));"
" vec4 colorB = texture2D (texB, " TEX_COORD ".st + vec2(dx, dy));"
" return (colorB.r + colorB.g + colorB.b) / 3.0;"
"}"
FRAGMENT_SHADER_BEGIN