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

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Wed Nov 9 11:29:56 UTC 2016


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

New commits:
commit ed42212f53b2e52238346e64dae31a931d6c90a1
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Wed Nov 9 10:32:35 2016 +0100

    tdf#103758 wrong GL format for RGBA image buffers
    
    Change-Id: I8a36234068ce0818b7baaa3b6c68d789753db6de
    Reviewed-on: https://gerrit.libreoffice.org/30711
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
    Tested-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index bce9fb7..9fb8c47 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -64,7 +64,7 @@ inline bool determineTextureFormat(sal_uInt16 nBits, GLenum& nFormat, GLenum& nT
         return true;
     case 32:
         nFormat = GL_RGBA;
-        nType = GL_UNSIGNED_INT_8_8_8_8;
+        nType = GL_UNSIGNED_BYTE;
         return true;
     default:
         break;


More information about the Libreoffice-commits mailing list