diff options
| author | 2020-07-01 01:18:43 -0300 | |
|---|---|---|
| committer | 2020-07-13 01:01:09 -0300 | |
| commit | eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042 (patch) | |
| tree | 896889ac053cac733567007f74de34169540e2a0 /src/video_core/renderer_opengl | |
| parent | video_core/format_lookup_table: Add formats with existing PixelFormat (diff) | |
| download | yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.gz yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.tar.xz yuzu-eda37ff26b5c0a8b9f4e6237dbf8ace8ef82e042.zip | |
video_core: Fix DXT4 and RGB565
Diffstat (limited to 'src/video_core/renderer_opengl')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 7f85ceca9..12f54c050 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp | |||
| @@ -46,6 +46,7 @@ constexpr std::array<FormatTuple, VideoCore::Surface::MaxPixelFormat> tex_format | |||
| 46 | {GL_RGBA8I, GL_RGBA_INTEGER, GL_BYTE}, // ABGR8I | 46 | {GL_RGBA8I, GL_RGBA_INTEGER, GL_BYTE}, // ABGR8I |
| 47 | {GL_RGBA8UI, GL_RGBA_INTEGER, GL_UNSIGNED_BYTE}, // ABGR8UI | 47 | {GL_RGBA8UI, GL_RGBA_INTEGER, GL_UNSIGNED_BYTE}, // ABGR8UI |
| 48 | {GL_RGB565, GL_RGB, GL_UNSIGNED_SHORT_5_6_5}, // B5G6R5U | 48 | {GL_RGB565, GL_RGB, GL_UNSIGNED_SHORT_5_6_5}, // B5G6R5U |
| 49 | {GL_RGB565, GL_RGB, GL_UNSIGNED_SHORT_5_6_5_REV}, // R5G6B5U | ||
| 49 | {GL_RGB5_A1, GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV}, // B5G5R5A1U | 50 | {GL_RGB5_A1, GL_BGRA, GL_UNSIGNED_SHORT_1_5_5_5_REV}, // B5G5R5A1U |
| 50 | {GL_RGB10_A2, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV}, // A2B10G10R10U | 51 | {GL_RGB10_A2, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV}, // A2B10G10R10U |
| 51 | {GL_RGB10_A2UI, GL_RGBA_INTEGER, GL_UNSIGNED_INT_2_10_10_10_REV}, // A2B10G10R10UI | 52 | {GL_RGB10_A2UI, GL_RGBA_INTEGER, GL_UNSIGNED_INT_2_10_10_10_REV}, // A2B10G10R10UI |
| @@ -64,7 +65,8 @@ constexpr std::array<FormatTuple, VideoCore::Surface::MaxPixelFormat> tex_format | |||
| 64 | {GL_COMPRESSED_RGBA_S3TC_DXT1_EXT}, // DXT1 | 65 | {GL_COMPRESSED_RGBA_S3TC_DXT1_EXT}, // DXT1 |
| 65 | {GL_COMPRESSED_RGBA_S3TC_DXT3_EXT}, // DXT23 | 66 | {GL_COMPRESSED_RGBA_S3TC_DXT3_EXT}, // DXT23 |
| 66 | {GL_COMPRESSED_RGBA_S3TC_DXT5_EXT}, // DXT45 | 67 | {GL_COMPRESSED_RGBA_S3TC_DXT5_EXT}, // DXT45 |
| 67 | {GL_COMPRESSED_RED_RGTC1}, // DXN1 | 68 | {GL_COMPRESSED_RED_RGTC1}, // DXN1UNORM |
| 69 | {GL_COMPRESSED_SIGNED_RED_RGTC1}, // DXN1SNORM | ||
| 68 | {GL_COMPRESSED_RG_RGTC2}, // DXN2UNORM | 70 | {GL_COMPRESSED_RG_RGTC2}, // DXN2UNORM |
| 69 | {GL_COMPRESSED_SIGNED_RG_RGTC2}, // DXN2SNORM | 71 | {GL_COMPRESSED_SIGNED_RG_RGTC2}, // DXN2SNORM |
| 70 | {GL_COMPRESSED_RGBA_BPTC_UNORM}, // BC7U | 72 | {GL_COMPRESSED_RGBA_BPTC_UNORM}, // BC7U |