mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
HiresTextures: Remove the need to explicitly free SOIL allocated data
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
class HiresTexture
|
||||
{
|
||||
public:
|
||||
using SOILPointer = std::unique_ptr<u8, void(*)(unsigned char*)>;
|
||||
|
||||
static void Init();
|
||||
static void Update();
|
||||
static void Shutdown();
|
||||
@ -36,9 +38,12 @@ public:
|
||||
|
||||
struct Level
|
||||
{
|
||||
u8* data;
|
||||
size_t data_size;
|
||||
u32 width, height;
|
||||
Level();
|
||||
|
||||
SOILPointer data;
|
||||
size_t data_size = 0;
|
||||
u32 width = 0;
|
||||
u32 height = 0;
|
||||
};
|
||||
std::vector<Level> m_levels;
|
||||
|
||||
|
Reference in New Issue
Block a user