summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2018-11-21 02:27:34 +0100
committerFernandoS27 <fsahmkow27@gmail.com>2018-11-21 12:33:34 +0100
commit0a9fedfac90e811f3c007df4484891c34eb1e6bb (patch)
tree514423f24ee5929536c68b5d60656493b9ec1dcb /src/video_core/renderer_opengl
parentMerge pull request #1667 from DarkLordZach/swkbd (diff)
downloadyuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.tar
yuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.tar.gz
yuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.tar.bz2
yuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.tar.lz
yuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.tar.xz
yuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.tar.zst
yuzu-0a9fedfac90e811f3c007df4484891c34eb1e6bb.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index ea38da932..27b5b8960 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -304,6 +304,12 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture,
gl_framebuffer_data.resize(texture.width * texture.height * 4);
break;
default:
+ internal_format = GL_RGBA;
+ texture.gl_format = GL_RGBA;
+ texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV;
+ gl_framebuffer_data.resize(texture.width * texture.height * 4);
+ LOG_CRITICAL(Render_OpenGL, "Unknown framebuffer pixel format: {}",
+ static_cast<u32>(framebuffer.pixel_format));
UNREACHABLE();
}