mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-16 23:06:07 +00:00
Added trace log for data unloading
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user