mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 10:07:56 -05:00
GSP: Toggle active framebuffer each frame
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user