mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Revert "OpenXR - Disable range culling properly"
This reverts commit d1dabd40ee
.
This commit is contained in:
parent
1c6f491db4
commit
72d197fc47
2 changed files with 2 additions and 2 deletions
|
@ -1304,7 +1304,7 @@ bool GenerateVertexShader(const VShaderID &id, char *buffer, const ShaderLanguag
|
|||
WRITE(p, " }\n");
|
||||
}
|
||||
|
||||
if (vertexRangeCulling) {
|
||||
if (vertexRangeCulling && !gstate_c.Use(GPU_USE_VIRTUAL_REALITY)) {
|
||||
WRITE(p, " vec3 projPos = outPos.xyz / outPos.w;\n");
|
||||
WRITE(p, " float projZ = (projPos.z - u_depthRange.z) * u_depthRange.w;\n");
|
||||
|
||||
|
|
|
@ -3338,7 +3338,7 @@ u32 GPUCommon::CheckGPUFeatures() const {
|
|||
|
||||
bool canClipOrCull = draw_->GetDeviceCaps().clipDistanceSupported || draw_->GetDeviceCaps().cullDistanceSupported;
|
||||
bool canDiscardVertex = draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL);
|
||||
if (!gstate_c.Use(GPU_USE_VIRTUAL_REALITY) && (canClipOrCull || canDiscardVertex)) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue