We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9a66f6 commit ab93c2dCopy full SHA for ab93c2d
1 file changed
src/engine_lib/src/game/model.c
@@ -584,12 +584,13 @@ prv_model_add_to_model_renderer(te_model* model) {
584
585
glBindBuffer(GL_ARRAY_BUFFER, vbo);
586
glBufferData(
587
- GL_ARRAY_BUFFER, sizeof(te_model_vertex) * vertex_count, vertices, GL_STATIC_DRAW);
+ GL_ARRAY_BUFFER, (unsigned int)(sizeof(te_model_vertex) * vertex_count), vertices,
588
+ GL_STATIC_DRAW);
589
590
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo);
591
- GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned short) * index_count, indices,
592
- GL_STATIC_DRAW);
+ GL_ELEMENT_ARRAY_BUFFER, (unsigned int)(sizeof(unsigned short) * index_count),
593
+ indices, GL_STATIC_DRAW);
594
595
// Position.
596
glBindAttribLocation(model->shader_prog_id, 0, "pos");
0 commit comments