Removed redundent code block
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user