mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
GE Debugger: Restrict marking of dirty VRAM better.
This commit is contained in:
parent
e97d5498c6
commit
e7185f93b3
@ -123,10 +123,10 @@ static void DirtyVRAM(u32 start, u32 sz, DirtyVRAMFlag flag) {
|
||||
}
|
||||
|
||||
static void DirtyDrawnVRAM() {
|
||||
int w = std::max(gstate.getScissorX2(), gstate.getRegionX2()) + 1;
|
||||
int h = std::max(gstate.getScissorY2(), gstate.getRegionY2()) + 1;
|
||||
int w = std::min(gstate.getScissorX2(), gstate.getRegionX2()) + 1;
|
||||
int h = std::min(gstate.getScissorY2(), gstate.getRegionY2()) + 1;
|
||||
|
||||
bool drawZ = gstate.isDepthWriteEnabled() && gstate.isDepthTestEnabled();
|
||||
bool drawZ = !gstate.isModeClear() && gstate.isDepthWriteEnabled() && gstate.isDepthTestEnabled();
|
||||
bool clearZ = gstate.isModeClear() && gstate.isClearModeDepthMask();
|
||||
if (drawZ || clearZ) {
|
||||
int bytes = 2 * gstate.DepthBufStride() * h;
|
||||
|
Loading…
Reference in New Issue
Block a user