mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
f95967fad7
commit
663f9af75b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue