From add2edcab8f21e10c2f130ebef1418a404362c9e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 22 Oct 2022 16:09:14 -0700 Subject: [PATCH] VR: Always pass the bounding box check. Likely better to draw all objects, even if they wouldn't have been on screen, for VR purposes. --- GPU/Common/DrawEngineCommon.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GPU/Common/DrawEngineCommon.cpp b/GPU/Common/DrawEngineCommon.cpp index 85efff21c6..35cfb7dfa9 100644 --- a/GPU/Common/DrawEngineCommon.cpp +++ b/GPU/Common/DrawEngineCommon.cpp @@ -250,6 +250,11 @@ bool DrawEngineCommon::TestBoundingBox(const void *control_points, const void *i SimpleVertex *corners = (SimpleVertex *)(decoded + 65536 * 12); float *verts = (float *)(decoded + 65536 * 18); + // Although this may lead to drawing that shouldn't happen, the viewport is more complex on VR. + // Let's always say objects are within bounds. + if (gstate_c.Use(GPU_USE_VIRTUAL_REALITY)) + return true; + // Try to skip NormalizeVertices if it's pure positions. No need to bother with a vertex decoder // and a large vertex format. if ((vertType & 0xFFFFFF) == GE_VTYPE_POS_FLOAT && !inds) {