diff options
Diffstat (limited to 'vcl/opengl/salbmp.cxx')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index 8e2eed0479ec..dc7418799e34 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -496,13 +496,6 @@ GLuint OpenGLSalBitmap::CreateTexture() determineTextureFormat(mnBits, nFormat, nType); } - else if( mnBits == 8 && maPalette.IsGreyPalette() ) - { - // no conversion needed for grayscale - pData = mpUserBuffer.get(); - nFormat = GL_LUMINANCE; - nType = GL_UNSIGNED_BYTE; - } else { VCL_GL_INFO( "::CreateTexture - convert from " << mnBits << " to 24 bits" ); |