texcache.c: use Bfilelength(), fixing Linux build.

git-svn-id: https://svn.eduke32.com/eduke32@3772 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-05-15 18:32:53 +00:00
parent f95967fad7
commit 663f9af75b

View file

@ -213,10 +213,10 @@ void texcache_syncmemcache(void)
{
size_t len;
if (!texcache_memptr || texcache_filehandle == -1 || filelength(texcache_filehandle) <= texcache_memsize)
if (!texcache_memptr || texcache_filehandle == -1 || Bfilelength(texcache_filehandle) <= texcache_memsize)
return;
len = filelength(texcache_filehandle);
len = Bfilelength(texcache_filehandle);
texcache_memptr = (uint8_t *)Brealloc(texcache_memptr, len);
@ -754,7 +754,7 @@ void texcache_setupmemcache(void)
if (!glusememcache || texcache_noalloc || !texcache_enabled())
return;
texcache_memsize = filelength(texcache_filehandle);
texcache_memsize = Bfilelength(texcache_filehandle);
if (texcache_memsize <= 0)
return;