Added trace log for data unloading

This commit is contained in:
Ray
2015-08-05 19:17:56 +02:00
parent 5436d93a3d
commit a42bfa7794
4 changed files with 14 additions and 0 deletions

View File

@@ -390,12 +390,16 @@ Texture2D LoadTextureFromImage(Image image)
void UnloadImage(Image image)
{
free(image.data);
TraceLog(INFO, "Unloaded image data");
}
// Unload texture from GPU memory
void UnloadTexture(Texture2D texture)
{
rlDeleteTextures(texture.id);
TraceLog(INFO, "[TEX ID %i] Unloaded texture data", texture.id);
}
// Get pixel data from image in the form of Color struct array