renderer: mesh_destroy

main
Dominik Madarász 2024-03-01 12:37:11 +01:00
parent 45388ccfde
commit 33fb24142d
3 changed files with 31919 additions and 31913 deletions

View File

@ -371953,7 +371953,9 @@ void mesh_render_prim(mesh_t *sm, unsigned prim) {
void mesh_destroy(mesh_t *m) { void mesh_destroy(mesh_t *m) {
// @todo // @todo
(void)m; glDeleteBuffers(1, &m->vbo);
glDeleteBuffers(1, &m->ibo);
glDeleteVertexArrays(1, &m->vao);
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

View File

@ -1943,7 +1943,9 @@ void mesh_render_prim(mesh_t *sm, unsigned prim) {
void mesh_destroy(mesh_t *m) { void mesh_destroy(mesh_t *m) {
// @todo // @todo
(void)m; glDeleteBuffers(1, &m->vbo);
glDeleteBuffers(1, &m->ibo);
glDeleteVertexArrays(1, &m->vao);
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------

63824
engine/v4k.c

File diff suppressed because it is too large Load Diff