From 3de2ba1e9f506417a70c01aeea804bada15dd81c Mon Sep 17 00:00:00 2001 From: Lubos Date: Sat, 17 Dec 2022 16:51:05 +0100 Subject: [PATCH 1/2] OpenXR - 3rd Birthday rendering fixed --- GPU/GLES/ShaderManagerGLES.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GPU/GLES/ShaderManagerGLES.cpp b/GPU/GLES/ShaderManagerGLES.cpp index 15c9422273..8247acd425 100644 --- a/GPU/GLES/ShaderManagerGLES.cpp +++ b/GPU/GLES/ShaderManagerGLES.cpp @@ -342,6 +342,8 @@ static inline bool GuessVRDrawingHUD(bool is2D, bool flatScreen) { 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; + //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 From 992d4c5147c38601351bd03d13720efa5c1468bc Mon Sep 17 00:00:00 2001 From: Lubos Date: Sat, 17 Dec 2022 17:52:04 +0100 Subject: [PATCH 2/2] OpenXR - Final Fantasy rendering fixed --- GPU/GLES/ShaderManagerGLES.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/ShaderManagerGLES.cpp b/GPU/GLES/ShaderManagerGLES.cpp index 8247acd425..5ebb7bf8a8 100644 --- a/GPU/GLES/ShaderManagerGLES.cpp +++ b/GPU/GLES/ShaderManagerGLES.cpp @@ -341,7 +341,7 @@ 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