diff --git a/src/osgPlugins/rgb/ReaderWriterRGB.cpp b/src/osgPlugins/rgb/ReaderWriterRGB.cpp index 6bc0f397f..658c15e4d 100644 --- a/src/osgPlugins/rgb/ReaderWriterRGB.cpp +++ b/src/osgPlugins/rgb/ReaderWriterRGB.cpp @@ -487,13 +487,8 @@ class ReaderWriterRGB : public osgDB::ReaderWriter raw->sizeZ == 2 ? GL_LUMINANCE_ALPHA : raw->sizeZ == 3 ? GL_RGB : raw->sizeZ == 4 ? GL_RGBA : (GLenum)-1; - #if 0 - int internalFormat = raw->sizeZ == 3 ? GL_RGB5 : - raw->sizeZ == 4 ? GL_RGB5_A1 : GL_RGB; - #else - int internalFormat = pixelFormat; - #endif + int internalFormat = pixelFormat; unsigned int dataType = raw->bpc == 1 ? GL_UNSIGNED_BYTE : GL_UNSIGNED_SHORT;