summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar bunnei2015-01-04 00:08:11 -0500
committerGravatar bunnei2015-01-07 18:06:00 -0500
commitf7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99 (patch)
tree29ce6589ebf3f504a38f679501b58f431ab9dace /src/video_core
parentMerge pull request #402 from chrisvj/master (diff)
downloadyuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.gz
yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.tar.xz
yuzu-f7a3f45f1e5e507c81e2ad1a1a33dbeb62e64a99.zip
GSP: Toggle active framebuffer each frame
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp5
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() {
87 */ 87 */
88void RendererOpenGL::LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer, 88void RendererOpenGL::LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer,
89 const TextureInfo& texture) { 89 const TextureInfo& texture) {
90
91 // TODO: Why are active_fb and the valid framebuffer flipped compared to 3dbrew documentation
92 // and GSP definitions?
90 const VAddr framebuffer_vaddr = Memory::PhysicalToVirtualAddress( 93 const VAddr framebuffer_vaddr = Memory::PhysicalToVirtualAddress(
91 framebuffer.active_fb == 1 ? framebuffer.address_left2 : framebuffer.address_left1); 94 framebuffer.active_fb == 0 ? framebuffer.address_left2 : framebuffer.address_left1);
92 95
93 LOG_TRACE(Render_OpenGL, "0x%08x bytes from 0x%08x(%dx%d), fmt %x", 96 LOG_TRACE(Render_OpenGL, "0x%08x bytes from 0x%08x(%dx%d), fmt %x",
94 framebuffer.stride * framebuffer.height, 97 framebuffer.stride * framebuffer.height,