engine: ref: check if refdll was initialized before freeing texture

This commit is contained in:
Alibek Omarov 2019-11-17 18:05:05 +03:00
parent f562926aaa
commit 7afee98f99
1 changed files with 3 additions and 0 deletions

View File

@ -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 );
}