mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-29 04:24:17 +01:00
Latte: rendertarget is a bitmask (#942)
This commit is contained in:
parent
85aa4f095b
commit
d8b9a74d86
@ -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();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user