Don't release a missing/invalid texture reference in the skybox component. Hold on to the reference so that it can hot-reload
Signed-off-by: Tommy Walton <waltont@amazon.com>
This commit is contained in:
-2
@@ -196,8 +196,6 @@ namespace AZ
|
||||
}
|
||||
else
|
||||
{
|
||||
// If this asset didn't load or isn't a cubemap, release it.
|
||||
m_configuration.m_cubemapAsset.Release();
|
||||
m_featureProcessorInterface->SetCubemap(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user