Skip to content

Commit

Permalink
Use correct GL format for BC5 DDS
Browse files Browse the repository at this point in the history
Add an entry to the format table for the "ATI2" FOURCC, choosing the matching
GL format (GL_COMPRESSED_RG_RGTC2).
  • Loading branch information
Matthew Mott committed Aug 3, 2021
1 parent 130e952 commit 0705fce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radiantcore/imagefile/dds.cpp
Expand Up @@ -200,6 +200,7 @@ static const std::map<std::string, GLenum> GL_FMT_FOR_FOURCC
{ "DXT1", GL_COMPRESSED_RGBA_S3TC_DXT1_EXT },
{ "DXT3", GL_COMPRESSED_RGBA_S3TC_DXT3_EXT },
{ "DXT5", GL_COMPRESSED_RGBA_S3TC_DXT5_EXT },
{ "ATI2", GL_COMPRESSED_RG_RGTC2 }
};

// Map uncompressed DDS bit depths to GLenum memory layouts
Expand Down

0 comments on commit 0705fce

Please sign in to comment.