Latte: rendertarget is a bitmask (#942)

This commit is contained in:
GaryOderNichts 2023-08-16 23:52:06 +02:00 committed by GitHub
parent 85aa4f095b
commit d8b9a74d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -84,6 +84,10 @@ extern uint8* gxRingBufferReadPtr; // currently active read pointer (gx2 ring bu
void LatteTextureLoader_estimateAccessedDataRange(LatteTexture* texture, sint32 sliceIndex, sint32 mipIndex, uint32& addrStart, uint32& addrEnd); void LatteTextureLoader_estimateAccessedDataRange(LatteTexture* texture, sint32 sliceIndex, sint32 mipIndex, uint32& addrStart, uint32& addrEnd);
// render target // render target
#define RENDER_TARGET_TV (1 << 0)
#define RENDER_TARGET_DRC (1 << 2)
void LatteRenderTarget_updateScissorBox(); void LatteRenderTarget_updateScissorBox();
void LatteRenderTarget_trackUpdates(); void LatteRenderTarget_trackUpdates();

View File

@ -1048,9 +1048,9 @@ void LatteRenderTarget_itHLECopyColorBufferToScanBuffer(MPTR colorBufferPtr, uin
} }
} }
if (renderTarget == 4 && g_renderer->IsPadWindowActive()) if ((renderTarget & RENDER_TARGET_DRC) && g_renderer->IsPadWindowActive())
LatteRenderTarget_copyToBackbuffer(texView, true); LatteRenderTarget_copyToBackbuffer(texView, true);
if ((renderTarget == 1 && !showDRC) || (renderTarget == 4 && showDRC)) if (((renderTarget & RENDER_TARGET_TV) && !showDRC) || ((renderTarget & RENDER_TARGET_DRC) && showDRC))
LatteRenderTarget_copyToBackbuffer(texView, false); LatteRenderTarget_copyToBackbuffer(texView, false);
} }