mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
VITA/NX: Fix rendering of textures with alpha blending on HUD (sniper scope)
This commit is contained in:
parent
8ad380f6b3
commit
4899ea3d2b
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue