mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GPU: Allow range cull on Mali/etc.
Previously had been disabled when cullDistance/clipDistance were unsupported, but it's still helpful without those. See #15049.
This commit is contained in:
parent
12215a3c60
commit
5557950a4b
3 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ void GPU_D3D11::CheckGPUFeatures() {
|
|||
// When supported, we can do the depth side of range culling more correctly.
|
||||
const bool supported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported;
|
||||
const bool disabled = PSP_CoreParameter().compat.flags().DisableRangeCulling;
|
||||
if (supported && !disabled) {
|
||||
if (supported || !disabled) {
|
||||
features |= GPU_SUPPORTS_VS_RANGE_CULLING;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,7 +231,7 @@ void GPU_GLES::CheckGPUFeatures() {
|
|||
// When supported, we can do the depth side of range culling more correctly.
|
||||
const bool supported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported;
|
||||
const bool disabled = PSP_CoreParameter().compat.flags().DisableRangeCulling;
|
||||
if (supported && !disabled) {
|
||||
if (supported || !disabled) {
|
||||
features |= GPU_SUPPORTS_VS_RANGE_CULLING;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -249,7 +249,7 @@ void GPU_Vulkan::CheckGPUFeatures() {
|
|||
// When supported, we can do the depth side of range culling more correctly.
|
||||
const bool supported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported;
|
||||
const bool disabled = PSP_CoreParameter().compat.flags().DisableRangeCulling;
|
||||
if (supported && !disabled) {
|
||||
if (supported || !disabled) {
|
||||
features |= GPU_SUPPORTS_VS_RANGE_CULLING;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue