* tests/test-shader.c:
Fix edge-detect shader on ATI, thanks Gwenole Beauchesne
This commit is contained in:
parent
ac02680447
commit
e0a36199b0
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user