diff options
| author | Ray <[email protected]> | 2021-03-02 01:35:30 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-02 01:35:30 +0100 |
| commit | c514431e796fa491832372b5b85060e3484cae6c (patch) | |
| tree | 27850b29161fa066f6c2761c786f45f2055bfeeb | |
| parent | bcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a (diff) | |
| download | raylib-c514431e796fa491832372b5b85060e3484cae6c.tar.gz raylib-c514431e796fa491832372b5b85060e3484cae6c.zip | |
REVIEWED: rlUnloadMesh()
| -rw-r--r-- | src/rlgl.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3015,11 +3015,11 @@ void rlDrawMeshInstanced(Mesh mesh, Material material, Matrix *transforms, int c void rlUnloadMesh(Mesh *mesh) { #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) - for (int i = 0; i < 7; i++) glDeleteBuffers(1, mesh->vboId[i]); // DEFAULT_MESH_VERTEX_BUFFERS (model.c) + for (int i = 0; i < 7; i++) glDeleteBuffers(1, &mesh->vboId[i]); // DEFAULT_MESH_VERTEX_BUFFERS (model.c) if (RLGL.ExtSupported.vao) { glBindVertexArray(0); - glDeleteVertexArrays(1, mesh->vaoId); + glDeleteVertexArrays(1, &mesh->vaoId); TRACELOG(LOG_INFO, "VAO: [ID %i] Unloaded vertex data from VRAM (GPU)", mesh.vaoId); } else TRACELOG(LOG_INFO, "VBO: Unloaded vertex data from VRAM (GPU)"); |
