Ver código fonte

REVIEWED: rlUnloadMesh()

pull/1627/head
Ray 3 anos atrás
pai
commit
c514431e79
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/rlgl.h

+ 2
- 2
src/rlgl.h Ver arquivo

@ -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, o">&mesh->vboId[i]); // DEFAULT_MESH_VERTEX_BUFFERS (model.c)
if (RLGL.ExtSupported.vao)
{
glBindVertexArray(0);
glDeleteVertexArrays(1, mesh->vaoId);
glDeleteVertexArrays(1, o">&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)");

Carregando…
Cancelar
Salvar