ref: gl: fix r_showhull check

This commit is contained in:
Alibek Omarov 2023-05-29 14:42:16 +03:00
parent f49a2bc8f3
commit 16595bf2c0

View File

@ -39,7 +39,7 @@ void R_DrawWorldHull( void )
ClearBits( r_showhull->flags, FCVAR_CHANGED ); ClearBits( r_showhull->flags, FCVAR_CHANGED );
} }
if( !r_showhull->flags ) if( !r_showhull->value )
return; return;
pglDisable( GL_TEXTURE_2D ); pglDisable( GL_TEXTURE_2D );
@ -62,7 +62,7 @@ void R_DrawModelHull( void )
winding_t *poly; winding_t *poly;
int i; int i;
if( !r_showhull->flags ) if( !r_showhull->value )
return; return;
if( !RI.currentmodel || RI.currentmodel->name[0] != '*' ) if( !RI.currentmodel || RI.currentmodel->name[0] != '*' )