From 77f342fc630a20b6e3724f4dda5ea4bb02cc4bf4 Mon Sep 17 00:00:00 2001 From: purplemarshmallow Date: Tue, 14 Jul 2015 10:09:09 +0200 Subject: [PATCH] fix depth buffer copy in LLE in LLE it works well for Star Wars Episode I - Racer but for most games it does not work correctly --- src/RSP.cpp | 4 ---- src/gDP.cpp | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/RSP.cpp b/src/RSP.cpp index 72cadbd6..432a953f 100644 --- a/src/RSP.cpp +++ b/src/RSP.cpp @@ -204,10 +204,6 @@ void RSP_ProcessDList() RSP_CheckDLCounter(); } } - - if (config.frameBufferEmulation.copyDepthToRDRAM) - FrameBuffer_CopyDepthBuffer( gDP.colorImage.address ); - RSP.busy = FALSE; gDP.changed |= CHANGED_COLORBUFFER; } diff --git a/src/gDP.cpp b/src/gDP.cpp index de65770c..c953220c 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -882,6 +882,8 @@ void gDPFullSync() { if (config.frameBufferEmulation.copyToRDRAM) FrameBuffer_CopyToRDRAM(gDP.colorImage.address); + if (config.frameBufferEmulation.copyDepthToRDRAM) + FrameBuffer_CopyDepthBuffer(gDP.colorImage.address); *REG.MI_INTR |= MI_INTR_DP;