mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix warnings in texcache
git-svn-id: https://svn.eduke32.com/eduke32@4669 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
088808eb3e
commit
ecb11010ef
1 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@ static inline void texcache_clearmemcache(void)
|
|||
|
||||
void texcache_syncmemcache(void)
|
||||
{
|
||||
size_t len = Bfilelength(texcache.filehandle);
|
||||
int32_t len = Bfilelength(texcache.filehandle);
|
||||
|
||||
if (!texcache.memcache.ptr || texcache.filehandle == -1 || len <= (int32_t)texcache.memcache.size)
|
||||
return;
|
||||
|
@ -408,7 +408,7 @@ int32_t texcache_readdata(void *dest, int32_t len)
|
|||
|
||||
texcache.filepos += len;
|
||||
|
||||
if (texcache.memcache.ptr && texcache.memcache.size >= (bsize_t)ocachepos+len)
|
||||
if (texcache.memcache.ptr && texcache.memcache.size >= ocachepos+len)
|
||||
{
|
||||
// initprintf("using memcache!\n");
|
||||
Bmemcpy(dest, texcache.memcache.ptr+ocachepos, len);
|
||||
|
|
Loading…
Reference in a new issue