Skip to content

Commit

Permalink
ref: gl: fix stuck single lightmap texture object when using VBO afte…
Browse files Browse the repository at this point in the history
…r updating lightmap
  • Loading branch information
a1batross committed Jan 19, 2024
1 parent f162fbd commit 150d98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ref/gl/gl_rsurf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2993,7 +2993,7 @@ void R_ClearVBOState( qboolean drawlightmap, qboolean drawtextures )
if( drawlightmap )
{
// reset states
GL_SelectTexture( XASH_TEXTURE1 );
GL_Bind( XASH_TEXTURE1, tr.defaultTexture ); // force reset tmu in case we have only one lightmap
pglDisableClientState( GL_TEXTURE_COORD_ARRAY );
pglDisable( GL_TEXTURE_2D );
if( drawtextures )
Expand Down

0 comments on commit 150d98b

Please sign in to comment.