mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
engine: ref: check if refdll was initialized before freeing texture
This commit is contained in:
parent
f562926aaa
commit
7afee98f99
@ -34,6 +34,9 @@ void GL_FreeImage( const char *name )
|
||||
{
|
||||
int texnum;
|
||||
|
||||
if( !ref.initialized )
|
||||
return;
|
||||
|
||||
if(( texnum = ref.dllFuncs.GL_FindTexture( name )) != 0 )
|
||||
ref.dllFuncs.GL_FreeTexture( texnum );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user