From bae1bf7b0a4758996cd2373367e712089dded221 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Thu, 18 Jun 2015 03:08:21 +0200 Subject: [PATCH] Corrected bug on UnloadModel() --- src/models.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models.c b/src/models.c index de3f6da0..8d772f02 100644 --- a/src/models.c +++ b/src/models.c @@ -1105,8 +1105,8 @@ void UnloadModel(Model model) rlDeleteBuffers(model.mesh.vboId[2]); rlDeleteVertexArrays(model.mesh.vaoId); - rlDeleteTextures(model.texture.id); - rlDeleteShader(model.shader.id); + //rlDeleteTextures(model.texture.id); + //rlDeleteShader(model.shader.id); } // Link a texture to a model