From 3f8099b9b5c64e912a2ca227a9e3b2ce774f5ff3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 18 Nov 2021 06:18:27 +0100 Subject: Fix corrupt VertexBuffer by disabling vertex buffer copying --- include/mglpp/graphics/VertexBuffer.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mglpp/graphics/VertexBuffer.hpp b/include/mglpp/graphics/VertexBuffer.hpp index 03d8763..e2e32b8 100644 --- a/include/mglpp/graphics/VertexBuffer.hpp +++ b/include/mglpp/graphics/VertexBuffer.hpp @@ -21,6 +21,8 @@ namespace mgl { }; VertexBuffer(); + VertexBuffer(const VertexBuffer&) = delete; + VertexBuffer& operator=(const VertexBuffer&) = delete; ~VertexBuffer(); void set_position(vec2f position) override; -- cgit v1.2.3