VITA/NX: Fix rendering of textures with alpha blending on HUD (sniper scope)

This commit is contained in:
Ian 2023-09-06 19:52:53 -04:00
parent 8ad380f6b3
commit 4899ea3d2b
1 changed files with 7 additions and 0 deletions

View File

@ -940,6 +940,10 @@ void Draw_AlphaStretchPic (int x, int y, int width, int height, float alpha, qpi
glColor4f (1,1,1,alpha);
glDisable (GL_ALPHA_TEST);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
} else {
glDisable (GL_ALPHA_TEST);
glEnable (GL_BLEND);
glDepthMask(GL_FALSE);
}
if (scrap_dirty)
@ -976,6 +980,9 @@ void Draw_AlphaStretchPic (int x, int y, int width, int height, float alpha, qpi
glEnable(GL_ALPHA_TEST);
glDisable (GL_BLEND);
glColor4f (1,1,1,1);
} else {
glDepthMask(GL_TRUE);
glDisable(GL_BLEND);
}
}