diff --git a/openVulkanoCpp/Scene/Prefabs/ArBackgroundDrawable.hpp b/openVulkanoCpp/Scene/Prefabs/ArBackgroundDrawable.hpp index 6dda25b..960d256 100644 --- a/openVulkanoCpp/Scene/Prefabs/ArBackgroundDrawable.hpp +++ b/openVulkanoCpp/Scene/Prefabs/ArBackgroundDrawable.hpp @@ -28,7 +28,7 @@ namespace OpenVulkano UniformBuffer m_intrinsicsBuffer; Ptr m_arSession; Ptr m_nextFrame, m_currentFrame, m_lastFrame; - const Texture* m_texture; + const Texture* m_texture = nullptr; void OnNewArFrame(const Ptr& frame); @@ -48,4 +48,4 @@ namespace OpenVulkano UniformBuffer& GetBuffer() { return m_intrinsicsBuffer; } }; } -} \ No newline at end of file +}