From 02d265ac0c64d337a808be4f1775380a8458e1f4 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 2 Jan 2021 23:10:17 +0100 Subject: [PATCH] Change buffer creation to variant from lower API version --- inferno/src/inferno/render/buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inferno/src/inferno/render/buffer.cpp b/inferno/src/inferno/render/buffer.cpp index d2ff033..5884e7d 100644 --- a/inferno/src/inferno/render/buffer.cpp +++ b/inferno/src/inferno/render/buffer.cpp @@ -117,7 +117,7 @@ namespace Inferno { VertexBuffer::VertexBuffer(float* vertices, size_t size) { - glCreateBuffers(1, &m_id); + glGenBuffers(1, &m_id); this->bind(); // Upload data to the GPU