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