From 33a3e9fbcac8a462d991ed1f7ac3962acfc86356 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 2 Mar 2019 23:35:43 +0000 Subject: [PATCH] Fix compilation error in texcache git-svn-id: https://svn.eduke32.com/eduke32@7380 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/texcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/texcache.cpp b/source/build/src/texcache.cpp index edfb171da..72721f277 100644 --- a/source/build/src/texcache.cpp +++ b/source/build/src/texcache.cpp @@ -242,7 +242,7 @@ static inline void texcache_clearmemcache(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) return; @@ -848,7 +848,7 @@ void texcache_setupmemcache(void) if (!glusememcache || !texcache_enabled()) return; - texcache.memsize = filelength(texcache.handle); + texcache.memsize = buildvfs_length(texcache.handle); if (texcache.memsize <= 0) return;