diff options
| author | Stenzek <stenzek@gmail.com> | 2017-07-27 22:00:04 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-08-01 11:59:38 +1000 |
| commit | 63305e917328d0ce9f3db6def51eaa67f23880ec (patch) | |
| tree | cc49e54e98061cf855c52ad62406c3bf062db6da /Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp | |
| parent | d18988f41e6d3fdda7ce51da7de4747b69a06a6c (diff) | |
HiresTextures: Support loading BC7 (BPTC) from DDS files
Diffstat (limited to 'Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp b/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp index 5b9bbeced9..003a59664f 100644 --- a/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp +++ b/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp @@ -319,6 +319,14 @@ bool ParseDDSHeader(File::IOFile& file, DDSLoadInfo* info) info->bytes_per_block = 16; needs_s3tc = true; } + else if (dxt10_format == 98) + { + info->format = AbstractTextureFormat::BPTC; + info->block_size = 4; + info->bytes_per_block = 16; + if (!g_ActiveConfig.backend_info.bSupportsBPTCTextures) + return false; + } else { // Leave all remaining formats to SOIL. |
