This commit is contained in:
Wojtek Figat
2021-07-06 11:13:43 +02:00
parent 687fa325fa
commit 43e5805e50
3 changed files with 12 additions and 28 deletions

View File

@@ -348,11 +348,9 @@ void AtmospherePreComputeService::Update()
// Init service
if (!_shader)
{
_shader = Content::LoadAsyncInternal<Shader>(TEXT("Shaders/AtmospherePreCompute"));
if (_shader && !_shader->IsLoaded())
return;
}
if (_shader && !_shader->IsLoaded())
return;
if (init())
{
LOG(Fatal, "Cannot setup Atmosphere Pre Compute!");