Added trace log for data unloading
This commit is contained in:
parent
5436d93a3d
commit
a42bfa7794
4 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue