diff options
Diffstat (limited to 'vcl/opengl/salbmp.cxx')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index f3147cdcc101..3a033c4afef0 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -403,8 +403,9 @@ GLuint OpenGLSalBitmap::CreateTexture() VCL_GL_INFO( "::CreateTexture - convert from " << mnBits << " to 24 bits" ); // convert to 24 bits RGB using palette determineTextureFormat(24, nFormat, nType); - pData = convertDataTo24Bpp( mpUserBuffer.get(), mnWidth, mnHeight, - mnBits, mnBytesPerRow, maPalette, nFormat == GL_BGR ).release(); + pData = convertDataBitCount( mpUserBuffer.get(), mnWidth, mnHeight, + mnBits, mnBytesPerRow, maPalette, + nFormat == GL_BGR ? BitConvert::BGR : BitConvert::RGB ).release(); bAllocated = true; } } |