mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-08 22:41:45 +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;
|
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;
|
return;
|
||||||
|
|
||||||
len = filelength(texcache_filehandle);
|
len = Bfilelength(texcache_filehandle);
|
||||||
|
|
||||||
texcache_memptr = (uint8_t *)Brealloc(texcache_memptr, len);
|
texcache_memptr = (uint8_t *)Brealloc(texcache_memptr, len);
|
||||||
|
|
||||||
|
@ -754,7 +754,7 @@ void texcache_setupmemcache(void)
|
||||||
if (!glusememcache || texcache_noalloc || !texcache_enabled())
|
if (!glusememcache || texcache_noalloc || !texcache_enabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
texcache_memsize = filelength(texcache_filehandle);
|
texcache_memsize = Bfilelength(texcache_filehandle);
|
||||||
|
|
||||||
if (texcache_memsize <= 0)
|
if (texcache_memsize <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue