Skip to content

Commit

Permalink
OpenXR - Do not rescale the postprocess effects
Browse files Browse the repository at this point in the history
  • Loading branch information
lvonasek committed Nov 25, 2022
1 parent 0e2fd7c commit 5417e82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GPU/GLES/ShaderManagerGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ void LinkedShader::UpdateUniforms(u32 vertType, const ShaderID &vsid, bool useBu

// Set HUD mode
if (gstate_c.Use(GPU_USE_VIRTUAL_REALITY)) {
bool hud = is2D && !flatScreen &&
bool postprocess = ((gstate_c.curTextureWidth % 480 == 0) && (gstate_c.curTextureHeight % 272 == 0)) || gstate_c.textureFullAlpha;
bool hud = is2D && !flatScreen && !postprocess &&
gstate.isAlphaBlendEnabled() && //2D content has to be blended
!gstate.isLightingEnabled() && //2D content cannot be rendered with lights on
!gstate.isFogEnabled() && //2D content cannot be rendered with fog on
Expand Down

0 comments on commit 5417e82

Please sign in to comment.