From 90bd72d481b012d92abf16114958e86f406eb82f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 25 Mar 2025 00:48:32 +0300 Subject: [PATCH] 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 --- ref/gl/gl_sprite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ref/gl/gl_sprite.c b/ref/gl/gl_sprite.c index c8dff220..7b712d28 100644 --- a/ref/gl/gl_sprite.c +++ b/ref/gl/gl_sprite.c @@ -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 )