fix bug introduced in rev 2092 which made switching 3d renderers crashy. thanks pokefan

This commit is contained in:
zeromus 2009-05-08 05:24:24 +00:00
parent cd564d1a8f
commit 7c24040c97
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ void TexCache_Reset()
if(TexCache_texMAP == NULL) TexCache_texMAP = new u8[1024*2048*4];
if(texcache == NULL) texcache = new TextureCache[MAX_TEXTURE+1];
memset(texcache,0,sizeof(texcache));
memset(texcache,0,sizeof(TextureCache[MAX_TEXTURE+1]));
texcache_start=0;
texcache_stop=MAX_TEXTURE<<1;