[Libreoffice-commits] core.git: Branch 'feature/opengl-vcl2' - vcl/opengl
Louis-Francis Ratté-Boulianne
lfrb at collabora.com
Tue Dec 2 19:54:54 PST 2014
vcl/opengl/replaceColorFragmentShader.glsl | 2 --
1 file changed, 2 deletions(-)
New commits:
commit c072de53b6f2e8ca162a9dd70f1062073d54c115
Author: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Date: Tue Dec 2 17:18:26 2014 -0500
vcl: Fix color-replacement fragment shader
Change-Id: I82a0a45961ea3f0ceca7dab67c8736b5e1205bb0
diff --git a/vcl/opengl/replaceColorFragmentShader.glsl b/vcl/opengl/replaceColorFragmentShader.glsl
index 7c5b4c5..6e845f0 100644
--- a/vcl/opengl/replaceColorFragmentShader.glsl
+++ b/vcl/opengl/replaceColorFragmentShader.glsl
@@ -18,8 +18,6 @@ void main() {
vec4 diff = clamp(abs(texel - search_color) - epsilon, 0.0, 1.0);
float bump = max(0.0, 1.0 - ceil(diff.x + diff.y + diff.z));
gl_FragColor = texel + bump * (replace_color - search_color);
- gl_FragColor.r = 1.0;
- gl_FragColor.g = 0.0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list