Added unload texture function
Raylib is written in C, so cleaning up resources (such as textures, images, or sounds) must be done manually
This commit is contained in:
parent
fbb4052665
commit
5055261d8f
|
@ -27,7 +27,8 @@ int main()
|
|||
EndDrawing();
|
||||
}
|
||||
|
||||
CloseWindow();
|
||||
UnloadTexture(texture);
|
||||
|
||||
CloseWindow();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue