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:
jaroshevskii 2022-05-19 02:02:17 +03:00 committed by GitHub
parent fbb4052665
commit 5055261d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,8 @@ int main()
EndDrawing();
}
CloseWindow();
UnloadTexture(texture);
CloseWindow();
return 0;
}