mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-12 16:05:52 +00:00
ShaderCacheManager read fix
This commit is contained in:
parent
b4dac198ac
commit
1bfef7ddf8
@ -241,6 +241,8 @@ ShaderCachedData ShaderCacheManager::lookupData(const Hash& hash)
|
|||||||
m_datFr.readUBytesToBuf(compDat, z.avail_in);
|
m_datFr.readUBytesToBuf(compDat, z.avail_in);
|
||||||
z.next_in = compDat;
|
z.next_in = compDat;
|
||||||
int ret = inflate(&z, Z_NO_FLUSH);
|
int ret = inflate(&z, Z_NO_FLUSH);
|
||||||
|
if (ret == Z_STREAM_END)
|
||||||
|
break;
|
||||||
if (ret != Z_OK)
|
if (ret != Z_OK)
|
||||||
{
|
{
|
||||||
inflateEnd(&z);
|
inflateEnd(&z);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user