opengl – All the meshes I'm rendering seem to start at the same point

I am learning OpenGL through LearnOpenGL.com

I'm stuck in the model renderer. I'm writing everything from scratch in C, and this is what I have:

enter the description of the image here

I feel like I'm missing a flag or something and this should be an easy solution.

This is what you should have:

enter the description of the image here

I checked all the vertices and indexes, and they are the same. The rendering is done with a simple

bind_vao (mesh.vao)
glDrawElements (GL_TRIANGLES, mesh.nr_indices, GL_UNSIGNED_INT, 0);

Here is the code that I am copying:

https://learnopengl.com/code_viewer_gh.php?code=src/3.model_loading/1.model_loading/model_loading.cpp

https://learnopengl.com/code_viewer_gh.php?code=includes/learnopengl/model.h

https://learnopengl.com/code_viewer_gh.php?code=includes/learnopengl/mesh.h