diff options
| author | 2019-08-21 02:22:54 -0300 | |
|---|---|---|
| committer | 2019-08-21 02:28:31 -0300 | |
| commit | 80702aa88f6f448decfbb06dc14db470c221dd38 (patch) | |
| tree | 564386e3afa4a28ac7028f10805e7671fbed26ee /src/video_core/renderer_opengl | |
| parent | renderer_opengl: Use block linear swizzling for CPU framebuffers (diff) | |
| download | yuzu-80702aa88f6f448decfbb06dc14db470c221dd38.tar.gz yuzu-80702aa88f6f448decfbb06dc14db470c221dd38.tar.xz yuzu-80702aa88f6f448decfbb06dc14db470c221dd38.zip | |
renderer_opengl: Implement RGB565 framebuffer format
Diffstat (limited to 'src/video_core/renderer_opengl')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 8c44b330e..af9684839 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -285,7 +285,11 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture, | |||
| 285 | internal_format = GL_RGBA8; | 285 | internal_format = GL_RGBA8; |
| 286 | texture.gl_format = GL_RGBA; | 286 | texture.gl_format = GL_RGBA; |
| 287 | texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV; | 287 | texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV; |
| 288 | 288 | break; | |
| 289 | case Tegra::FramebufferConfig::PixelFormat::RGB565: | ||
| 290 | internal_format = GL_RGB565; | ||
| 291 | texture.gl_format = GL_RGB; | ||
| 292 | texture.gl_type = GL_UNSIGNED_SHORT_5_6_5; | ||
| 289 | break; | 293 | break; |
| 290 | default: | 294 | default: |
| 291 | internal_format = GL_RGBA8; | 295 | internal_format = GL_RGBA8; |