diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-25 01:44:09 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-25 04:31:46 +0200 |
commit | c30cd898fc122d1277583c5165d622e323faad07 (patch) | |
tree | cb9649aeea252e62f897e60251ed4c486aa5f470 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | gl_rasterizer_cache: Use CHAR_BIT for bpp conversions instead of 8. (diff) | |
download | yuzu-c30cd898fc122d1277583c5165d622e323faad07.tar yuzu-c30cd898fc122d1277583c5165d622e323faad07.tar.gz yuzu-c30cd898fc122d1277583c5165d622e323faad07.tar.bz2 yuzu-c30cd898fc122d1277583c5165d622e323faad07.tar.lz yuzu-c30cd898fc122d1277583c5165d622e323faad07.tar.xz yuzu-c30cd898fc122d1277583c5165d622e323faad07.tar.zst yuzu-c30cd898fc122d1277583c5165d622e323faad07.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index a266e21cf..5ca9821b7 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -270,10 +270,9 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture, GLint internal_format; switch (framebuffer.pixel_format) { case Tegra::FramebufferConfig::PixelFormat::ABGR8: - // Use RGBA8 and swap in the fragment shader internal_format = GL_RGBA; texture.gl_format = GL_RGBA; - texture.gl_type = GL_UNSIGNED_INT_8_8_8_8; + texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV; gl_framebuffer_data.resize(texture.width * texture.height * 4); break; default: |