mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Fix dirtying caused by clip flag state. This could probably be a bit smarter.
This commit is contained in:
1 parent
f8b153ba2b
commit
bdd72c08f3
6 files changed
+25
-1
No files matched your search
@@ -246,6 +246,13 @@ void DrawEngineVulkan::Flush() {
|
||||
useHWTransform = false;
|
||||
}
|
||||
}
|
||||
if (clipInfoFlags_ != lastClipInfoFlags_) {
|
||||
ClipInfoFlags changed = (ClipInfoFlags)((u32)clipInfoFlags_ ^ (u32)lastClipInfoFlags_);
|
||||
if (changed & (ClipInfoFlags::DepthClampFragment | ClipInfoFlags::MinMaxZDiscard)) {
|
||||
gstate_c.Dirty(DIRTY_VERTEXSHADER_STATE | DIRTY_FRAGMENTSHADER_STATE | DIRTY_RASTER_STATE);
|
||||
}
|
||||
lastClipInfoFlags_ = clipInfoFlags_;
|
||||
}
|
||||
|
||||
// Is this still needed?
|
||||
if (useHWTransform != lastUseHwTransform_) {
|
||||
|
||||
Reference in new issue
Block a user