Browse Source

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

pull/2/head
Alibek Omarov 5 years ago
parent
commit
7afee98f99
  1. 3
      engine/client/ref_common.c

3
engine/client/ref_common.c

@ -34,6 +34,9 @@ void GL_FreeImage( const char *name ) @@ -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…
Cancel
Save