Add shader reloading on header file edit for shaders with compilation errors

This commit is contained in:
Wojciech Figat
2022-04-08 13:53:23 +02:00
parent da4008575b
commit 598876d8e3
2 changed files with 16 additions and 8 deletions

View File

@@ -324,15 +324,14 @@ void Asset::Reload()
Content::AssetReloading(this);
OnReloading(this);
// Fire unload event
// TODO: maybe just call release storage ref or sth? we cannot call onUnload because managed asset objects gets invalidated
//onUnload_MainThread();
ScopeLock lock(Locker);
// Unload current data
unload(true);
_isLoaded = false;
if (IsLoaded())
{
// Unload current data
unload(true);
_isLoaded = false;
}
// Start reloading process
startLoading();