Skip to content

Commit

Permalink
Enable backface culling for sprites (consistent with QS)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Nov 21, 2023
1 parent 6bde823 commit a1cc7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Quake/r_sprite.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ static void R_FlushSpriteInstances (void)
GL_UseProgram (glprogs.sprites[dither]);

if (showtris)
GL_SetState (GLS_BLEND_OPAQUE | GLS_NO_ZWRITE | GLS_CULL_NONE | GLS_ATTRIBS(2));
GL_SetState (GLS_BLEND_OPAQUE | GLS_NO_ZWRITE | GLS_CULL_BACK | GLS_ATTRIBS(2));
else
GL_SetState (GLS_BLEND_OPAQUE | GLS_CULL_NONE | GLS_ATTRIBS(2));
GL_SetState (GLS_BLEND_OPAQUE | GLS_CULL_BACK | GLS_ATTRIBS(2));

GL_Bind (GL_TEXTURE0, showtris ? whitetexture : batchtexture);

Expand Down

0 comments on commit a1cc7fb

Please sign in to comment.