mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Dirty RASTER_STATE when switching between rect and non-rect primitives (culling)
This commit is contained in:
parent
e439055a32
commit
712c36b98b
1 changed files with 6 additions and 0 deletions
|
@ -232,6 +232,12 @@ protected:
|
|||
gstate_c.Dirty(DIRTY_UVSCALEOFFSET);
|
||||
lastDraw_ = type;
|
||||
}
|
||||
// Prim == RECTANGLES can cause CanUseHardwareTransform to flip, so we need to dirty.
|
||||
// Also, culling may be affected.
|
||||
if ((prim == GE_PRIM_RECTANGLES) != (lastPrim_ == GE_PRIM_RECTANGLES)) {
|
||||
gstate_c.Dirty(DIRTY_RASTER_STATE);
|
||||
lastPrim_ = prim;
|
||||
}
|
||||
}
|
||||
|
||||
virtual void InitClearInternal() {}
|
||||
|
|
Loading…
Add table
Reference in a new issue