diff options
| author | 2014-05-16 23:21:03 -0700 | |
|---|---|---|
| committer | 2014-05-16 23:21:03 -0700 | |
| commit | b8c8d0903ec9be4c7d580464480a0136277be803 (patch) | |
| tree | 9280a9f01e1312d0d8aed493282ae65d2384963c /src/video_core | |
| parent | Added FindGLEW to cmake-modules (diff) | |
| parent | Merge pull request #17 from bunnei/arm-vfp (diff) | |
| download | yuzu-b8c8d0903ec9be4c7d580464480a0136277be803.tar.gz yuzu-b8c8d0903ec9be4c7d580464480a0136277be803.tar.xz yuzu-b8c8d0903ec9be4c7d580464480a0136277be803.zip | |
Merge remote-tracking branch 'upstream/master' into issue-7-fix
Diffstat (limited to 'src/video_core')
| -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 314b1a8ed..f2e809b1d 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 | } |