diff options
| author | bunnei <bunneidev@gmail.com> | 2020-07-21 00:13:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-21 00:13:04 -0400 |
| commit | 3d13d7f48f3bf7c1fb7b7673e963aa3e54db2838 (patch) | |
| tree | 3214c882ce18526a3e57223ae96f06e7083369f2 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
| parent | 61e4c0f83d3e355bc717851de4df0e001645ab8f (diff) | |
| parent | fbc232426d8ff739b0028fb5b41fb5124f7e1792 (diff) | |
Merge pull request #4324 from ReinUsesLisp/formats
video_core: Fix, add and rename pixel formats
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index e66cdc083..52e9e8250 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -535,12 +535,12 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture, GLint internal_format; switch (framebuffer.pixel_format) { - case Tegra::FramebufferConfig::PixelFormat::ABGR8: + case Tegra::FramebufferConfig::PixelFormat::A8B8G8R8_UNORM: internal_format = GL_RGBA8; texture.gl_format = GL_RGBA; texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV; break; - case Tegra::FramebufferConfig::PixelFormat::RGB565: + case Tegra::FramebufferConfig::PixelFormat::RGB565_UNORM: internal_format = GL_RGB565; texture.gl_format = GL_RGB; texture.gl_type = GL_UNSIGNED_SHORT_5_6_5; |
