tdf#103758 wrong GL format for RGBA image buffers

Change-Id: I8a36234068ce0818b7baaa3b6c68d789753db6de
Reviewed-on: https://gerrit.libreoffice.org/30711
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
Tomaž Vajngerl
2016-11-09 10:32:35 +01:00
committed by Tomaž Vajngerl
parent cd61f3eb3d
commit ed42212f53

View File

@@ -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;