summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2016-06-13 14:00:48 +0900
committerTomaž Vajngerl <quikee@gmail.com>2016-06-13 05:04:32 +0000
commit76d4cda6170eedef3596ff6b5b9ef89b9c8d7c83 (patch)
treec289ec070d998ae53e6e27fdd0aefc4f3b194b66
parentf536a83d51443d19dba58157cea28fb67a090e02 (diff)
opengl: vertex colors are defined in range 0-255 (GLubyte)
Change-Id: I27962119ade7bcbc20b94eb548bd2c9dfb386404 Reviewed-on: https://gerrit.libreoffice.org/26207 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/opengl/combinedTextureVertexShader.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/combinedTextureVertexShader.glsl b/vcl/opengl/combinedTextureVertexShader.glsl
index 3086806266f9..a3e4642023ab 100644
--- a/vcl/opengl/combinedTextureVertexShader.glsl
+++ b/vcl/opengl/combinedTextureVertexShader.glsl
@@ -34,7 +34,7 @@ void main()
mask_coord = mask_coord_in;
alpha_coord = alpha_coord_in;
#ifdef USE_VERTEX_COLORS
- vertex_color = vertex_color_in;
+ vertex_color = vertex_color_in / 255.0;
#endif
}