From dfe9da43dab6c933bc1024f992383f08e01386de Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 18 Aug 2026 15:00:34 +0200 Subject: [fix]: macos compatibility --- src/Platform/OpenGL/OpenGLVertexArray.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Platform/OpenGL/OpenGLVertexArray.cpp') diff --git a/src/Platform/OpenGL/OpenGLVertexArray.cpp b/src/Platform/OpenGL/OpenGLVertexArray.cpp index 6019287..afe5fe2 100644 --- a/src/Platform/OpenGL/OpenGLVertexArray.cpp +++ b/src/Platform/OpenGL/OpenGLVertexArray.cpp @@ -6,9 +6,11 @@ namespace Donut { - OpenGLVertexArray::OpenGLVertexArray() + OpenGLVertexArray::OpenGLVertexArray() { - glCreateVertexArrays(1, &m_RendererID); + // glCreateVertexArrays is 4.5 DSA; macOS caps at 4.1. glGenVertexArrays + // reserves the name and the VAO is created on first bind (done below). + glGenVertexArrays(1, &m_RendererID); } OpenGLVertexArray::~OpenGLVertexArray() -- cgit v1.3