aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-18 06:18:27 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 06:18:27 +0100
commit3f8099b9b5c64e912a2ca227a9e3b2ce774f5ff3 (patch)
treeceb67aef12841ddb4b5d265e34531405b1b6d9c3
parent870f3ac7f31fd4056f95ebec1844a22ef64c7472 (diff)
Fix corrupt VertexBuffer by disabling vertex buffer copying
-rw-r--r--include/mglpp/graphics/VertexBuffer.hpp2
1 files changed, 2 insertions, 0 deletions
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;