summaryrefslogtreecommitdiffstats
path: root/AssetLoader/interface
diff options
context:
space:
mode:
Diffstat (limited to 'AssetLoader/interface')
-rw-r--r--AssetLoader/interface/GLTFLoader.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp
index a4bc29f..125c16a 100644
--- a/AssetLoader/interface/GLTFLoader.hpp
+++ b/AssetLoader/interface/GLTFLoader.hpp
@@ -33,6 +33,7 @@
#include <cfloat>
#include <unordered_map>
#include <mutex>
+#include <atomic>
#include "../../../DiligentCore/Graphics/GraphicsEngine/interface/RenderDevice.h"
#include "../../../DiligentCore/Graphics/GraphicsEngine/interface/DeviceContext.h"
@@ -425,7 +426,7 @@ struct Model
bool IsGPUDataInitialized() const
{
- return GPUDataInitialized;
+ return GPUDataInitialized.load();
}
void Transform(const float4x4& Matrix);
@@ -489,7 +490,7 @@ private:
Node* FindNode(Node* parent, Uint32 index);
Node* NodeFromIndex(uint32_t index);
- bool GPUDataInitialized = false;
+ std::atomic_bool GPUDataInitialized = false;
struct BufferInfo
{