From fa6308a64586a63a3f3f5ae02a33a57c65ce9763 Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Thu, 6 Jun 2024 21:40:51 -0400 Subject: [PATCH] Fixing bug with creating texture from memory. --- seika/rendering/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seika/rendering/texture.c b/seika/rendering/texture.c index fd3b9d5..9dc47dc 100644 --- a/seika/rendering/texture.c +++ b/seika/rendering/texture.c @@ -81,7 +81,7 @@ SkaTexture* ska_texture_create_texture_from_memory2(void* buffer, usize bufferSi ska_texture_generate(texture); - ska_asset_file_loader_free_image_data(&(SkaAssetFileImageData){ imageData }); + stbi_image_free(imageData); return texture; }