mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-10 06:32:03 +00:00
NX/VITA: Fix rendering of sprites with alpha channel
This commit is contained in:
parent
2617a83d20
commit
a8375fce89
1 changed files with 5 additions and 2 deletions
|
@ -150,7 +150,9 @@ void R_DrawSpriteModel (entity_t *e)
|
||||||
|
|
||||||
GL_Bind(frame->gltexture);
|
GL_Bind(frame->gltexture);
|
||||||
|
|
||||||
glEnable (GL_ALPHA_TEST);
|
glDisable (GL_ALPHA_TEST);
|
||||||
|
glEnable (GL_BLEND);
|
||||||
|
glDepthMask(GL_FALSE);
|
||||||
glBegin (GL_TRIANGLE_FAN); //was GL_QUADS, but changed to support r_showtris
|
glBegin (GL_TRIANGLE_FAN); //was GL_QUADS, but changed to support r_showtris
|
||||||
|
|
||||||
glTexCoord2f (0, frame->tmax);
|
glTexCoord2f (0, frame->tmax);
|
||||||
|
@ -174,7 +176,8 @@ void R_DrawSpriteModel (entity_t *e)
|
||||||
glVertex3fv (point);
|
glVertex3fv (point);
|
||||||
|
|
||||||
glEnd ();
|
glEnd ();
|
||||||
glDisable (GL_ALPHA_TEST);
|
glDepthMask(GL_TRUE);
|
||||||
|
glDisable(GL_BLEND);
|
||||||
|
|
||||||
//johnfitz: offset decals
|
//johnfitz: offset decals
|
||||||
if (psprite->type == SPR_ORIENTED)
|
if (psprite->type == SPR_ORIENTED)
|
||||||
|
|
Loading…
Reference in a new issue