diff options
Diffstat (limited to 'matchblox/common/bitmap.c')
-rw-r--r-- | matchblox/common/bitmap.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/matchblox/common/bitmap.c b/matchblox/common/bitmap.c index 2d69bc9..3a6171a 100644 --- a/matchblox/common/bitmap.c +++ b/matchblox/common/bitmap.c @@ -6,11 +6,21 @@ #define GL_CLAMP_TO_EDGE 0x812F
#endif
-#include <GL/gl.h>
+#include <GL/glut.h>
#include <GL/glu.h>
#include <stdio.h>
#include <stdlib.h>
+#ifndef GL_CLAMP_TO_EDGE
+#define GL_CLAMP_TO_EDGE 0x812F
+#endif
+#ifndef GL_BGR
+#define GL_BGR 0x80E0
+#endif
+#ifndef GL_BGRA
+#define GL_BGRA 0x80E1
+#endif
+
#include "bitmap.h"
#define BITMAP_FILESIZE 0x02
|