Skip to content

Commit

Permalink
🚨 Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Nov 27, 2023
1 parent eb5386d commit d7c2ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glpp/Functions/VertexBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void set_vertex_buffer_data(GLuint vertex_buffer_id, DataAccessFrequency access_
GL_ARRAY_BUFFER_BINDING, static_cast<GLint>(vertex_buffer_id),
"You must bind the buffer before setting its data."
);
glBufferData(GL_ARRAY_BUFFER, data.size() * sizeof(float), data.data(), raw(access_frequency));
glBufferData(GL_ARRAY_BUFFER, static_cast<GLsizeiptr>(data.size() * sizeof(float)), data.data(), raw(access_frequency));
glpp_check_errors();
}

Expand Down

0 comments on commit d7c2ab4

Please sign in to comment.