Init texture to nullptr

This commit is contained in:
Georg Hagen
2024-07-09 12:37:02 +02:00
parent d9a22236b4
commit bb38748971

View File

@@ -28,7 +28,7 @@ namespace OpenVulkano
UniformBuffer m_intrinsicsBuffer; UniformBuffer m_intrinsicsBuffer;
Ptr<AR::ArSession> m_arSession; Ptr<AR::ArSession> m_arSession;
Ptr<AR::ArFrame> m_nextFrame, m_currentFrame, m_lastFrame; Ptr<AR::ArFrame> m_nextFrame, m_currentFrame, m_lastFrame;
const Texture* m_texture; const Texture* m_texture = nullptr;
void OnNewArFrame(const Ptr<AR::ArFrame>& frame); void OnNewArFrame(const Ptr<AR::ArFrame>& frame);
@@ -48,4 +48,4 @@ namespace OpenVulkano
UniformBuffer& GetBuffer() { return m_intrinsicsBuffer; } UniformBuffer& GetBuffer() { return m_intrinsicsBuffer; }
}; };
} }
} }