diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-04 06:08:11 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-08 00:06:00 +0100 |
commit | f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99 (patch) | |
tree | 29ce6589ebf3f504a38f679501b58f431ab9dace /src/video_core/renderer_opengl | |
parent | Merge pull request #402 from chrisvj/master (diff) | |
download | yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.gz yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.bz2 yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.lz yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.xz yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.zst yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 4df3a5e25..29d220e8d 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -87,8 +87,11 @@ void RendererOpenGL::SwapBuffers() { */ void RendererOpenGL::LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer, const TextureInfo& texture) { + + // TODO: Why are active_fb and the valid framebuffer flipped compared to 3dbrew documentation + // and GSP definitions? const VAddr framebuffer_vaddr = Memory::PhysicalToVirtualAddress( - framebuffer.active_fb == 1 ? framebuffer.address_left2 : framebuffer.address_left1); + framebuffer.active_fb == 0 ? framebuffer.address_left2 : framebuffer.address_left1); LOG_TRACE(Render_OpenGL, "0x%08x bytes from 0x%08x(%dx%d), fmt %x", framebuffer.stride * framebuffer.height, |