From 0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 00:42:05 +0200 Subject: feat: custom memory managers and fix includes --- src/platform/opengl/opengl_vertex_array.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/platform/opengl/opengl_vertex_array.cpp') diff --git a/src/platform/opengl/opengl_vertex_array.cpp b/src/platform/opengl/opengl_vertex_array.cpp index c57479b..e2fb766 100644 --- a/src/platform/opengl/opengl_vertex_array.cpp +++ b/src/platform/opengl/opengl_vertex_array.cpp @@ -1,4 +1,5 @@ #include + #include "opengl_vertex_array.h" #include "rendering/vertex_buffer.h" #include "rendering/index_buffer.h" @@ -25,7 +26,7 @@ namespace Donut glBindVertexArray(0); } - void OpenGLVertexArray::add_vertex_buffer(const std::shared_ptr& vertex_buffer) + void OpenGLVertexArray::add_vertex_buffer(const Ref& vertex_buffer) { glBindVertexArray(m_renderer_id); vertex_buffer->bind(); @@ -46,7 +47,7 @@ namespace Donut m_vertex_buffers.push_back(vertex_buffer); } - void OpenGLVertexArray::set_index_buffer(const std::shared_ptr& index_buffer) + void OpenGLVertexArray::set_index_buffer(const Ref& index_buffer) { glBindVertexArray(m_renderer_id); index_buffer->bind(); -- cgit v1.3