summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-09-18 02:11:49 +0200
committerraysan5 <[email protected]>2020-09-18 02:11:49 +0200
commitcdc8850e6877084657a9c2be1142878e8e1a7f0a (patch)
tree23e75572844f6a8dc689b231e201ec6e440828e0 /src/models.c
parentfa2c1146366557e5ce779d8b5c2575579dfa6389 (diff)
downloadraylib-cdc8850e6877084657a9c2be1142878e8e1a7f0a.tar.gz
raylib-cdc8850e6877084657a9c2be1142878e8e1a7f0a.zip
WARNING: REDESIGN of rlgl framebuffers API #721
This redesign allows more flexibility when creating RenderTexture and a simplification (and hopefully removal) of `GenTexture*()` functions, that should not belong to this model but the user code, due to the use of custom shaders. Also, this new API opens the door for a possible GBuffers type and advance rendering possibilities... Some functions of the API have been also simplified or even removed. rlgl module can be used as an standalone library, so, a version for the library has been added: v3.1.0, matching current raylib version.
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.c b/src/models.c
index f7d59af7..2a815e7c 100644
--- a/src/models.c
+++ b/src/models.c
@@ -944,7 +944,7 @@ void UnloadMaterial(Material material)
// Unload loaded texture maps (avoid unloading default texture, managed by raylib)
for (int i = 0; i < MAX_MATERIAL_MAPS; i++)
{
- if (material.maps[i].texture.id != GetTextureDefault().id) rlDeleteTextures(material.maps[i].texture.id);
+ if (material.maps[i].texture.id != GetTextureDefault().id) rlUnloadTexture(material.maps[i].texture.id);
}
RL_FREE(material.maps);