#define VG_TEXTURE_NEAREST 0x8
#define VG_TEXTURE_ALLOCATED_INTERNAL 0x10
+#define QOI_IMPLEMENTATION
+#define QOI_MALLOC vg_alloc
+#define QOI_FREE vg_free
+
+#include "phoboslab/qoi.h"
+
struct vg_tex2d
{
const char *path;
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, info.width, info.height,
0, GL_RGBA, GL_UNSIGNED_BYTE, tex_buffer );
- free( tex_buffer );
- free( src_data );
+ vg_free( tex_buffer );
+ vg_free( src_data );
}
else
{