mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-02 16:08:32 +00:00
Unload model shaders and textures
They are not automatically unloaded when unloading the model!
This commit is contained in:
@@ -115,11 +115,12 @@ int main(void)
|
||||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
UnloadTexture(texture); // Unload texture
|
||||
|
||||
// Unload models data (GPU VRAM)
|
||||
for (int i = 0; i < NUM_MODELS; i++) UnloadModel(models[i]);
|
||||
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user