Fixed GL_COMPRESSED_RGB_S3TC_DXT1_EXT pathway so both pixel and internal
formats are the same.
This commit is contained in:
@@ -214,8 +214,11 @@ osg::Image* ReadDDSFile(const char *filename)
|
||||
else
|
||||
{
|
||||
internalFormat = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
|
||||
//#######################pixelFormat = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
|
||||
#if 1
|
||||
pixelFormat = GL_COMPRESSED_RGB_S3TC_DXT1_EXT;
|
||||
#else
|
||||
pixelFormat = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case FOURCC_DXT3:
|
||||
|
||||
Reference in New Issue
Block a user