mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
Dirty RASTER_STATE when switching between rect and non-rect primitives (culling)
This commit is contained in:
1 parent
e439055a32
commit
712c36b98b
1 file changed
+6
@@ -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() {}
|
||||
|
||||
Reference in new issue
Block a user