mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 01:34:15 +00:00
fix(ebo): remove const from constructor param
This commit is contained in:
@@ -9,7 +9,7 @@ private:
|
||||
GLuint id;
|
||||
|
||||
public:
|
||||
EBO(const unsigned int* indices, size_t size);
|
||||
EBO(unsigned int* indices, size_t size);
|
||||
~EBO();
|
||||
|
||||
void bind();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "EBO.hpp"
|
||||
|
||||
EBO::EBO(const unsigned int* indices, size_t size)
|
||||
EBO::EBO(unsigned int* indices, size_t size)
|
||||
{
|
||||
glGenBuffers(1, &id);
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, id);
|
||||
|
||||
Reference in New Issue
Block a user