Various things but also major error
[vg.git] / vg_tex.h
index 1fd2d5a29cf293306ffa4c0bb19e19c17bf947e9..125b43eb9eaa3369039897010647a32b502da141 100644 (file)
--- a/vg_tex.h
+++ b/vg_tex.h
 #define STB_IMAGE_WRITE_IMPLEMENTATION
 #include "vg/submodules/stb/stb_image_write.h"
 
+/* its a sad day. */
+#if 0
+#define STBI_MALLOC(X) 
+#define STBI_REALLOC(X,Y)
+#define STBI_FREE(X)
+#endif
+
+#define STBI_ONLY_JPEG
+#define STB_IMAGE_IMPLEMENTATION
+#include "vg/submodules/stb/stb_image.h"
+
 struct vg_sprite
 {
        v4f uv_xywh;