projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Platform and OS stability stuff
[vg.git]
/
src
/
vg
/
vg_tex.h
diff --git
a/src/vg/vg_tex.h
b/src/vg/vg_tex.h
index 9e0c56f6e18bebb8551edaa7add1ab586759dd3b..e92e5f152582258af9b0c73d59713a68f1be8764 100644
(file)
--- a/
src/vg/vg_tex.h
+++ b/
src/vg/vg_tex.h
@@
-11,6
+11,12
@@
#define VG_TEXTURE_NEAREST 0x8
#define VG_TEXTURE_ALLOCATED_INTERNAL 0x10
#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;
struct vg_tex2d
{
const char *path;
@@
-88,8
+94,8
@@
static GLuint vg_tex2d_rgba( const char *path )
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, info.width, info.height,
0, GL_RGBA, GL_UNSIGNED_BYTE, tex_buffer );
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
{
}
else
{