summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 00:18:46 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 00:18:46 -0500
commit636ea84bc7fa738c179168664ea22118ecc89ab3 (patch)
treef0e811c08533d21fddaa2d4aaa7193257890e0d4 /gl.c
parent43b8a9cb106d50265f5a6c1307e77d4642710f07 (diff)
restructure ted.c, node.c
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gl.c b/gl.c
index 6c66709..1063c96 100644
--- a/gl.c
+++ b/gl.c
@@ -1,6 +1,15 @@
#include "ted.h"
#include "lib/glcorearb.h"
+#if DEBUG
+unsigned char *stbi_load(const char *filename, int *x, int *y, int *comp, int req_comp);
+#else
+#define STB_IMAGE_STATIC
+no_warn_start
+#include "stb_image.c"
+no_warn_end
+#endif
+
// macro trickery to avoid having to write everything twice
#define gl_for_each_proc(do)\
do(DRAWARRAYS, DrawArrays)\