mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
OpenXR - Detect 3D content better
This commit is contained in:
1 parent
c00fea1b22
commit
5c3ff4f357
1 file changed
+2
@@ -326,9 +326,11 @@ void LinkedShader::UpdateUniforms(u32 vertType, const ShaderID &vsid, bool useBu
|
||||
|
||||
#ifdef OPENXR
|
||||
// Count 3D instances
|
||||
bool is3D = gstate.isDepthWriteEnabled();
|
||||
bool is2D = VR_TweakIsMatrixBigScale(gstate.projMatrix) ||
|
||||
VR_TweakIsMatrixIdentity(gstate.projMatrix) ||
|
||||
VR_TweakIsMatrixOneTransform(gstate.projMatrix);
|
||||
is2D = is2D && !is3D;
|
||||
if (!is2D && !gstate.isModeThrough()) {
|
||||
VR_SetConfig(VR_CONFIG_3D_GEOMETRY_COUNT, VR_GetConfig(VR_CONFIG_3D_GEOMETRY_COUNT) + 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user