Merge branch 'fix_empty_shadercache_crash' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-fix_empty_shadercache_crash

This commit is contained in:
2022-11-21 19:30:07 +01:00
@@ -113,6 +113,11 @@ bool ShaderAssetBase::Save()
bool IsValidShaderCache(DataContainer<byte>& shaderCache, Array<String>& includes)
{
if (shaderCache.Length() == 0)
{
return false;
}
MemoryReadStream stream(shaderCache.Get(), shaderCache.Length());
// Read cache format version