Skip to content

Commit

Permalink
const GLenum in genvbo()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Mar 5, 2025
1 parent 9d7bbdf commit 1652047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/render/vacollect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void genvbo(int type, std::vector<uchar> &buf, std::vector<vtxarray *> &vas)

GLuint vbo;
glGenBuffers(1, &vbo);
GLenum target = type==VBO_VBuf ? GL_ARRAY_BUFFER : GL_ELEMENT_ARRAY_BUFFER;
const GLenum target = type==VBO_VBuf ? GL_ARRAY_BUFFER : GL_ELEMENT_ARRAY_BUFFER;
glBindBuffer(target, vbo);
glBufferData(target, buf.size(), buf.data(), GL_STATIC_DRAW);
glBindBuffer(target, 0);
Expand Down

0 comments on commit 1652047

Please sign in to comment.