mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Fix compilation error in texcache
git-svn-id: https://svn.eduke32.com/eduke32@7380 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a050281006
commit
33a3e9fbca
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ static inline void texcache_clearmemcache(void)
|
||||||
|
|
||||||
void texcache_syncmemcache(void)
|
void texcache_syncmemcache(void)
|
||||||
{
|
{
|
||||||
int32_t len = filelength(texcache.handle);
|
int32_t len = buildvfs_length(texcache.handle);
|
||||||
|
|
||||||
if (!texcache.buf || texcache.handle == -1 || len <= (int32_t)texcache.memsize)
|
if (!texcache.buf || texcache.handle == -1 || len <= (int32_t)texcache.memsize)
|
||||||
return;
|
return;
|
||||||
|
@ -848,7 +848,7 @@ void texcache_setupmemcache(void)
|
||||||
if (!glusememcache || !texcache_enabled())
|
if (!glusememcache || !texcache_enabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
texcache.memsize = filelength(texcache.handle);
|
texcache.memsize = buildvfs_length(texcache.handle);
|
||||||
|
|
||||||
if (texcache.memsize <= 0)
|
if (texcache.memsize <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue