Merge pull request #16609 from lvonasek/hotfix-openxr-hud

OpenXR - Rendering fixes for a few games
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-12-17 22:12:01 +01:00
commit 4e41474e85
1 file changed
+3 -1
+3 -1
View File
@@ -341,7 +341,9 @@ static inline bool GuessVRDrawingHUD(bool is2D, bool flatScreen) {
//HUD must have full vertex alpha
else if (!gstate_c.vertexFullAlpha && gstate.getDepthTestFunction() == GE_COMP_NEVER) hud = false;
//HUD cannot render FB screenshot
else if (gstate_c.curTextureHeight % 136 <= 1) hud = false;
else if (gstate_c.curTextureHeight % 68 <= 1) hud = false;
//HUD cannot be rendered with add function
else if (gstate.getTextureFunction() == GETexFunc::GE_TEXFUNC_ADD) hud = false;
//HUD cannot be rendered with replace function
else if (gstate.getTextureFunction() == GETexFunc::GE_TEXFUNC_REPLACE) hud = false;
//HUD cannot be rendered with full clear color mask