diff options
| author | 2014-07-11 19:40:34 +0200 | |
|---|---|---|
| committer | 2014-07-23 00:33:08 +0200 | |
| commit | c6fdeb7b23f72b356b58a4573e51fc4ddf6db9ab (patch) | |
| tree | 6acfcdf0a20d637dbce33d9c7bd0a83545fe1ca0 /src | |
| parent | Renderer: Respect the active_fb GPU register. (diff) | |
| download | yuzu-c6fdeb7b23f72b356b58a4573e51fc4ddf6db9ab.tar.gz yuzu-c6fdeb7b23f72b356b58a4573e51fc4ddf6db9ab.tar.xz yuzu-c6fdeb7b23f72b356b58a4573e51fc4ddf6db9ab.zip | |
Renderer: Fix component order in bottom framebuffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index c549f4744..047c69185 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -124,7 +124,7 @@ void RendererOpenGL::RenderXFB(const common::Rect& src_rect, const common::Rect& | |||
| 124 | // Update textures with contents of XFB in RAM - bottom | 124 | // Update textures with contents of XFB in RAM - bottom |
| 125 | glBindTexture(GL_TEXTURE_2D, m_xfb_texture_bottom); | 125 | glBindTexture(GL_TEXTURE_2D, m_xfb_texture_bottom); |
| 126 | glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight, | 126 | glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, VideoCore::kScreenTopWidth, VideoCore::kScreenTopHeight, |
| 127 | GL_RGB, GL_UNSIGNED_BYTE, m_xfb_bottom_flipped); | 127 | GL_BGR, GL_UNSIGNED_BYTE, m_xfb_bottom_flipped); |
| 128 | glBindTexture(GL_TEXTURE_2D, 0); | 128 | glBindTexture(GL_TEXTURE_2D, 0); |
| 129 | 129 | ||
| 130 | // Render target is destination framebuffer | 130 | // Render target is destination framebuffer |
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index dd811cad6..30f4febe0 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.h +++ b/src/video_core/renderer_opengl/renderer_opengl.h | |||
| @@ -84,7 +84,6 @@ private: | |||
| 84 | // "Flipped" framebuffers translate scanlines from native 3DS left-to-right to top-to-bottom | 84 | // "Flipped" framebuffers translate scanlines from native 3DS left-to-right to top-to-bottom |
| 85 | // as OpenGL expects them in a texture. There probably is a more efficient way of doing this: | 85 | // as OpenGL expects them in a texture. There probably is a more efficient way of doing this: |
| 86 | 86 | ||
| 87 | u8 m_xfb_top_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4]; | 87 | u8 m_xfb_top_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopHeight * 4]; |
| 88 | u8 m_xfb_bottom_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4]; | 88 | u8 m_xfb_bottom_flipped[VideoCore::kScreenBottomWidth * VideoCore::kScreenBottomHeight * 4]; |
| 89 | 89 | }; | |
| 90 | }; \ No newline at end of file | ||