mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Correct condition for depth buffer copy hack for Perfect dark.
Fixed Perfect Dark high-res mode issues #1807 Fixed Perfect Dark No text/notifications in multiplayer #1930
This commit is contained in:
parent
e4b6224218
commit
3d46293376
|
@ -1013,7 +1013,9 @@ bool texturedRectDepthBufferCopy(const GraphicsDrawer::TexturedRectParams & _par
|
|||
// Works only with depth buffer emulation enabled.
|
||||
// Load of arbitrary data to that area causes weird camera rotation in CBFD.
|
||||
const gDPTile * pTile = gSP.textureTile[0];
|
||||
if (pTile->loadType == LOADTYPE_BLOCK && gDP.textureImage.size == 2 && gDP.textureImage.address >= gDP.depthImageAddress && gDP.textureImage.address < (gDP.depthImageAddress + gDP.colorImage.width*gDP.colorImage.width * 6 / 4)) {
|
||||
if (pTile->loadType == LOADTYPE_BLOCK && gDP.textureImage.size == 2 &&
|
||||
gDP.textureImage.address >= gDP.depthImageAddress &&
|
||||
gDP.textureImage.address < (gDP.depthImageAddress + gDP.colorImage.width*gDP.scissor.lry*2)) {
|
||||
if (config.frameBufferEmulation.copyDepthToRDRAM == Config::cdDisable)
|
||||
return true;
|
||||
FrameBuffer * pBuffer = frameBufferList().getCurrent();
|
||||
|
|
Loading…
Reference in New Issue
Block a user