ref: gl: disable blend after we're done drawing sprite "lightmap"

Fixes translucent brush model on renderfx2.bsp (https://twhl.info/vault/view/6933)
which so happened to draw after agrunt sprite, that has "lightmap" enabled
This commit is contained in:
Alibek Omarov
2025-03-25 00:48:32 +03:00
parent a2a3978de7
commit 90bd72d481

View File

@@ -891,6 +891,7 @@ void R_DrawSpriteModel( cl_entity_t *e )
R_DrawSpriteQuad( frame, origin, v_right, v_up, scale );
pglAlphaFunc( GL_GREATER, DEFAULT_ALPHATEST );
pglDepthFunc( GL_LEQUAL );
pglDisable( GL_BLEND );
}
if( psprite->facecull == SPR_CULL_NONE )