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
1 changed files with 2 additions and 2 deletions

View File

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