From 1ec8e253172112e0f2bb98426c8d0ad900addfe7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Oct 2022 15:23:50 +0200 Subject: a --- draw/wireframe-mesh.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'draw/wireframe-mesh.hpp') diff --git a/draw/wireframe-mesh.hpp b/draw/wireframe-mesh.hpp index 40471f8d..67b35ecd 100644 --- a/draw/wireframe-mesh.hpp +++ b/draw/wireframe-mesh.hpp @@ -55,7 +55,7 @@ wireframe_mesh::wireframe_mesh() : template void wireframe_mesh::draw(tile_shader& shader, T x) { - _vertex_buffer.setData({nullptr, sizeof(Vector3) * T::num_vertices}, GL::BufferUsage::DynamicDraw); // orphan the buffer + //_vertex_buffer.setData({nullptr, sizeof(Vector3) * T::num_vertices}, GL::BufferUsage::DynamicDraw); // orphan the buffer _vertex_buffer.setSubData(0, x.make_vertex_array()); x.on_draw(); mesh_base::draw(shader); -- cgit v1.2.3