From cd8d28cc5a3ab6b923e37d286509e100b515490d Mon Sep 17 00:00:00 2001 From: Lubos Date: Thu, 5 Jan 2023 22:38:50 +0100 Subject: [PATCH] OpenXR - Fix postprocess effect in 3rd birthday EU variant --- GPU/GLES/ShaderManagerGLES.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPU/GLES/ShaderManagerGLES.cpp b/GPU/GLES/ShaderManagerGLES.cpp index 784f4ee34b..15a91c56e5 100644 --- a/GPU/GLES/ShaderManagerGLES.cpp +++ b/GPU/GLES/ShaderManagerGLES.cpp @@ -336,6 +336,10 @@ static inline bool GuessVRDrawingHUD(bool is2D, bool flatScreen) { else if (gstate.isClearModeDepthMask()) hud = false; //HUD texture has to contain alpha channel else if (!gstate.isTextureAlphaUsed()) hud = false; + //HUD texture cannot be in CLUT16 format + else if (gstate.getTextureFormat() == GETextureFormat::GE_TFMT_CLUT16) hud = false; + //HUD texture cannot be in CLUT32 format + else if (gstate.getTextureFormat() == GETextureFormat::GE_TFMT_CLUT32) hud = false; //HUD cannot have full texture alpha else if (gstate_c.textureFullAlpha) hud = false; //HUD must have full vertex alpha