Skip to content

Commit

Permalink
Fixing bug with creating texture from memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Jun 7, 2024
1 parent ac9f023 commit fa6308a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seika/rendering/texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa6308a

Please sign in to comment.