Skip to content

Commit 95bdec7

Browse files
remove c-style pointer cast
1 parent b806d05 commit 95bdec7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ICE/GraphicsAPI/OpenGL/src/OpenGLVertexArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void OpenGLVertexArray::pushVertexBuffer(const std::shared_ptr<VertexBuffer>& bu
4646
if (size == 16) { // mat4 = 4 * vec4
4747
for (int i = 0; i < 4; i++) {
4848
glEnableVertexAttribArray(position + i);
49-
glVertexAttribPointer(position + i, 4, GL_FLOAT, GL_FALSE, sizeof(float) * 16, (void*)(sizeof(float) * 4 * i));
49+
glVertexAttribPointer(position + i, 4, GL_FLOAT, GL_FALSE, sizeof(float) * 16, reinterpret_cast<void *>(sizeof(float) * 4 * i));
5050
glVertexAttribDivisor(position + i, divisor);
5151
}
5252
cnt = (position + 4) > cnt ? position + 4 : cnt;

0 commit comments

Comments
 (0)