From 0e1da59f0c425bb012ed7122d8fb7f67e5dd6046 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 29 Dec 2022 23:35:47 +0100 Subject: [PATCH] Fix loading materials when using Null renderer Regression from dbcb333ba932840b04841d2502ffedbcb0aba592 --- Source/Engine/Content/Assets/Material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Content/Assets/Material.cpp b/Source/Engine/Content/Assets/Material.cpp index f6de35df7..7dd338633 100644 --- a/Source/Engine/Content/Assets/Material.cpp +++ b/Source/Engine/Content/Assets/Material.cpp @@ -126,7 +126,7 @@ Asset::LoadResult Material::load() FlaxChunk* materialParamsChunk; // Wait for the GPU Device to be ready (eg. case when loading material before GPU init) -#define IS_GPU_NOT_READY() (GPUDevice::Instance == nullptr || GPUDevice::Instance->GetState() != GPUDevice::DeviceState::Ready || GPUDevice::Instance->QuadShader == nullptr) +#define IS_GPU_NOT_READY() (GPUDevice::Instance == nullptr || GPUDevice::Instance->GetState() != GPUDevice::DeviceState::Ready) if (!IsInMainThread() && IS_GPU_NOT_READY()) { int32 timeout = 1000;