diff options
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index b63a73d18..24f9a91fd 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -58,15 +58,14 @@ void RendererOpenGL::SwapBuffers() { | |||
| 58 | * @todo Early on hack... I'd like to find a more efficient way of doing this /bunnei | 58 | * @todo Early on hack... I'd like to find a more efficient way of doing this /bunnei |
| 59 | */ | 59 | */ |
| 60 | void RendererOpenGL::FlipFramebuffer(const u8* in, u8* out) { | 60 | void RendererOpenGL::FlipFramebuffer(const u8* in, u8* out) { |
| 61 | for (int y = 0; y < VideoCore::kScreenTopHeight; y++) { | 61 | int in_coord = 0; |
| 62 | for (int x = 0; x < VideoCore::kScreenTopWidth; x++) { | 62 | for (int x = 0; x < VideoCore::kScreenTopWidth; x++) { |
| 63 | int in_coord = (VideoCore::kScreenTopHeight * 3 * x) + (VideoCore::kScreenTopHeight * 3) | 63 | for (int y = VideoCore::kScreenTopHeight-1; y >= 0; y--) { |
| 64 | - (3 * y + 3); | 64 | int out_coord = (x + y * VideoCore::kScreenTopWidth) * 3; |
| 65 | int out_coord = (VideoCore::kScreenTopWidth * y * 3) + (x * 3); | 65 | out[out_coord] = in[in_coord]; |
| 66 | |||
| 67 | out[out_coord + 0] = in[in_coord + 0]; | ||
| 68 | out[out_coord + 1] = in[in_coord + 1]; | 66 | out[out_coord + 1] = in[in_coord + 1]; |
| 69 | out[out_coord + 2] = in[in_coord + 2]; | 67 | out[out_coord + 2] = in[in_coord + 2]; |
| 68 | in_coord+=3; | ||
| 70 | } | 69 | } |
| 71 | } | 70 | } |
| 72 | } | 71 | } |