Remove some redundant code

This commit is contained in:
Wojtek Figat
2024-12-18 18:39:58 +01:00
parent 5b98603c16
commit 8eaa906e0c
4 changed files with 1 additions and 20 deletions

View File

@@ -78,14 +78,12 @@ int32 ShaderAssetBase::GetCacheChunkIndex(ShaderProfile profile)
bool ShaderAssetBase::initBase(AssetInitData& initData)
{
// Validate version
// Validate
if (initData.SerializedVersion != ShaderStorage::Header::Version)
{
LOG(Warning, "Invalid shader serialized version.");
return true;
}
// Validate data
if (initData.CustomData.Length() != sizeof(_shaderHeader))
{
LOG(Warning, "Invalid shader header.");