[Libreoffice-commits] core.git: vcl/opengl

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Mon Jun 13 05:04:56 UTC 2016


 vcl/opengl/combinedTextureVertexShader.glsl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 76d4cda6170eedef3596ff6b5b9ef89b9c8d7c83
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Mon Jun 13 14:00:48 2016 +0900

    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 at gmail.com>
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/vcl/opengl/combinedTextureVertexShader.glsl b/vcl/opengl/combinedTextureVertexShader.glsl
index 3086806..a3e4642 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
 }
 


More information about the Libreoffice-commits mailing list