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

This commit is contained in:
Wojtek Figat
2024-06-03 11:01:11 +02:00

View File

@@ -306,7 +306,7 @@ HRESULT LoadFromEXRFile(const StringView& path, DirectX::ScratchImage& image)
LOG_STR(Warning, String(err));
FreeEXRErrorMessage(err);
}
return S_FALSE;
return E_FAIL;
}
// Setup image
@@ -326,7 +326,7 @@ HRESULT LoadFromEXRFile(const StringView& path, DirectX::ScratchImage& image)
return result;
#else
LOG(Warning, "EXR format is not supported.");
return S_FALSE;
return E_FAIL;
#endif
}