Browse Source

Change buffer creation to variant from lower API version

master
Riyyi 4 years ago
parent
commit
02d265ac0c
  1. 2
      inferno/src/inferno/render/buffer.cpp

2
inferno/src/inferno/render/buffer.cpp

@ -117,7 +117,7 @@ namespace Inferno {
VertexBuffer::VertexBuffer(float* vertices, size_t size) VertexBuffer::VertexBuffer(float* vertices, size_t size)
{ {
glCreateBuffers(1, &m_id); glGenBuffers(1, &m_id);
this->bind(); this->bind();
// Upload data to the GPU // Upload data to the GPU

Loading…
Cancel
Save