mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 11:45:18 +02:00
Merge pull request #16645 from hrydgard/range-culling-fix
Fix vertex shader range culling - the driver bug check was wrong.
This commit is contained in:
+1
-1
@@ -3523,7 +3523,7 @@ u32 GPUCommon::CheckGPUFeatures() const {
|
||||
}
|
||||
|
||||
bool canClipOrCull = draw_->GetDeviceCaps().clipDistanceSupported || draw_->GetDeviceCaps().cullDistanceSupported;
|
||||
bool canDiscardVertex = draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL);
|
||||
bool canDiscardVertex = !draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL);
|
||||
if (canClipOrCull || canDiscardVertex) {
|
||||
// We'll dynamically use the parts that are supported, to reduce artifacts as much as possible.
|
||||
features |= GPU_USE_VS_RANGE_CULLING;
|
||||
|
||||
Reference in New Issue
Block a user