diff options
| author | hachem <im@hachem.wtf> | 2026-08-18 15:00:34 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-18 15:00:34 +0200 |
| commit | aabbeac3d9e2ac0f293ab43fec71e56091c823e8 (patch) | |
| tree | 4d986035f451e8511024076b2c94362dbf549712 /src/platform/opengl/opengl_index_buffer.cpp | |
| parent | ecb6705c7fc4fb085184712567d0e936ea5d0d1f (diff) | |
fix: macOS compatibility
Diffstat (limited to 'src/platform/opengl/opengl_index_buffer.cpp')
| -rw-r--r-- | src/platform/opengl/opengl_index_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/opengl/opengl_index_buffer.cpp b/src/platform/opengl/opengl_index_buffer.cpp index fac0585..d8ecb1d 100644 --- a/src/platform/opengl/opengl_index_buffer.cpp +++ b/src/platform/opengl/opengl_index_buffer.cpp @@ -6,7 +6,7 @@ namespace Donut OpenGLIndexBuffer::OpenGLIndexBuffer(const uint32_t* indices, uint32_t count) : m_count(count) { - glCreateBuffers(1, &m_renderer_id); + glGenBuffers(1, &m_renderer_id); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_renderer_id); glBufferData(GL_ELEMENT_ARRAY_BUFFER, count * sizeof(uint32_t), indices, GL_STATIC_DRAW); } |
