summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-04-18 20:51:09 +0200
committerSubv <subv2112@gmail.com>2018-04-18 21:17:27 +0200
commitb2c1672e108333bb38ae15f6c6677a0f3719896a (patch)
treebba88a87fb5ea959909581bc610c3d1ee443cecf /src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
parentMerge pull request #349 from Subv/texturing (diff)
downloadyuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar
yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.gz
yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.bz2
yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.lz
yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.xz
yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.tar.zst
yuzu-b2c1672e108333bb38ae15f6c6677a0f3719896a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index a92773f11..d54ddf643 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -52,7 +52,7 @@ static constexpr std::array<FormatTuple, 1> fb_format_tuples = {{
}};
static constexpr std::array<FormatTuple, 2> tex_format_tuples = {{
- {GL_RGBA8, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, false, 1}, // RGBA8
+ {GL_RGBA8, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, false, 1}, // ABGR8
{GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_RGB, GL_UNSIGNED_INT_8_8_8_8, true, 16}, // DXT1
}};
@@ -123,13 +123,13 @@ void MortonCopy(u32 stride, u32 block_height, u32 height, u8* gl_buffer, VAddr b
static constexpr std::array<void (*)(u32, u32, u32, u8*, VAddr, VAddr, VAddr), 2> morton_to_gl_fns =
{
- MortonCopy<true, PixelFormat::RGBA8>,
+ MortonCopy<true, PixelFormat::ABGR8>,
MortonCopy<true, PixelFormat::DXT1>,
};
static constexpr std::array<void (*)(u32, u32, u32, u8*, VAddr, VAddr, VAddr), 2> gl_to_morton_fns =
{
- MortonCopy<false, PixelFormat::RGBA8>,
+ MortonCopy<false, PixelFormat::ABGR8>,
// TODO(Subv): Swizzling the DXT1 format is not yet supported
nullptr,
};