mirror of
https://github.com/brl/mutter.git
synced 2025-03-23 11:43:50 +00:00
* 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>
|
2008-06-30 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
Bug 997 - automatic updates not working for named TFP pixmaps,
|
Bug 997 - automatic updates not working for named TFP pixmaps,
|
||||||
|
@ -158,7 +158,7 @@ static ShaderSource shaders[]=
|
|||||||
FRAGMENT_SHADER_VARS
|
FRAGMENT_SHADER_VARS
|
||||||
"float get_avg_rel(sampler2D texB, float dx, float dy)"
|
"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;"
|
" return (colorB.r + colorB.g + colorB.b) / 3.0;"
|
||||||
"}"
|
"}"
|
||||||
FRAGMENT_SHADER_BEGIN
|
FRAGMENT_SHADER_BEGIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user