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.
This commit is contained in:
Unknown W. Brackets committed 2022-10-22 16:52:02 -07:00
1 parent 261f1e13db
commit add2edcab8
1 file changed
+5
+5
View File
@@ -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) {