engine: ref: check if refdll was initialized before freeing texture
This commit is contained in:
parent
f562926aaa
commit
7afee98f99
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ void GL_FreeImage( const char *name )
|
||||||
{
|
{
|
||||||
int texnum;
|
int texnum;
|
||||||
|
|
||||||
|
if( !ref.initialized )
|
||||||
|
return;
|
||||||
|
|
||||||
if(( texnum = ref.dllFuncs.GL_FindTexture( name )) != 0 )
|
if(( texnum = ref.dllFuncs.GL_FindTexture( name )) != 0 )
|
||||||
ref.dllFuncs.GL_FreeTexture( texnum );
|
ref.dllFuncs.GL_FreeTexture( texnum );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue