Skip to content

Commit ab93c2d

Browse files
committed
Fix GCC warning.
1 parent c9a66f6 commit ab93c2d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/engine_lib/src/game/model.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,13 @@ prv_model_add_to_model_renderer(te_model* model) {
584584

585585
glBindBuffer(GL_ARRAY_BUFFER, vbo);
586586
glBufferData(
587-
GL_ARRAY_BUFFER, sizeof(te_model_vertex) * vertex_count, vertices, GL_STATIC_DRAW);
587+
GL_ARRAY_BUFFER, (unsigned int)(sizeof(te_model_vertex) * vertex_count), vertices,
588+
GL_STATIC_DRAW);
588589

589590
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo);
590591
glBufferData(
591-
GL_ELEMENT_ARRAY_BUFFER, sizeof(unsigned short) * index_count, indices,
592-
GL_STATIC_DRAW);
592+
GL_ELEMENT_ARRAY_BUFFER, (unsigned int)(sizeof(unsigned short) * index_count),
593+
indices, GL_STATIC_DRAW);
593594

594595
// Position.
595596
glBindAttribLocation(model->shader_prog_id, 0, "pos");

0 commit comments

Comments
 (0)