diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-29 02:29:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 02:29:43 +0100 |
commit | 5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c (patch) | |
tree | 265364563e5bf0c5dc3a50df740d06365cb2e532 /src/video_core | |
parent | Merge pull request #1612 from Tinob/master (diff) | |
parent | Enable alpha channel for DXT1 texture format (diff) | |
download | yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.tar yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.tar.gz yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.tar.bz2 yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.tar.lz yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.tar.xz yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.tar.zst yuzu-5d7167dfcaa033956612c2c95b6fca0ff4aa3f8c.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index b057e2efa..c3cf33eed 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -273,7 +273,7 @@ static constexpr std::array<FormatTuple, SurfaceParams::MaxPixelFormat> tex_form {GL_R11F_G11F_B10F, GL_RGB, GL_UNSIGNED_INT_10F_11F_11F_REV, ComponentType::Float, false}, // R11FG11FB10F {GL_RGBA32UI, GL_RGBA_INTEGER, GL_UNSIGNED_INT, ComponentType::UInt, false}, // RGBA32UI - {GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_RGB, GL_UNSIGNED_INT_8_8_8_8, ComponentType::UNorm, + {GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, ComponentType::UNorm, true}, // DXT1 {GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, ComponentType::UNorm, true}, // DXT23 @@ -318,7 +318,7 @@ static constexpr std::array<FormatTuple, SurfaceParams::MaxPixelFormat> tex_form {GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, ComponentType::UNorm, false}, // ASTC_2D_5X4 {GL_SRGB8_ALPHA8, GL_BGRA, GL_UNSIGNED_BYTE, ComponentType::UNorm, false}, // BGRA8 // Compressed sRGB formats - {GL_COMPRESSED_SRGB_S3TC_DXT1_EXT, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, ComponentType::UNorm, + {GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, ComponentType::UNorm, true}, // DXT1_SRGB {GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, ComponentType::UNorm, true}, // DXT23_SRGB |