Fixed GL_COMPRESSED_RGB_S3TC_DXT1_EXT pathway so both pixel and internal

formats are the same.
This commit is contained in:
Robert Osfield
2004-02-01 15:40:33 +00:00
parent cec8dd54ed
commit 9f81630453

View File

@@ -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: