Reverse allocation routines parameter order so that the context is at the back.

This commit is contained in:
Jorge Rodriguez
2014-09-09 22:57:15 -07:00
parent 17b931047c
commit c9d67446d2
2 changed files with 9 additions and 9 deletions

View File

@ -30,7 +30,7 @@ public:
void* memory;
} g_context;
void* stbir_malloc(void* context, size_t size)
void* stbir_malloc(size_t size, void* context)
{
if (!context)
return malloc(size);
@ -42,7 +42,7 @@ void* stbir_malloc(void* context, size_t size)
return real_context->memory;
}
void stbir_free(void* context, void* memory)
void stbir_free(void* memory, void* context)
{
if (!context)
return free(memory);