summaryrefslogtreecommitdiffstats
path: root/matchblox/common
diff options
context:
space:
mode:
Diffstat (limited to 'matchblox/common')
-rw-r--r--matchblox/common/bitmap.c12
-rw-r--r--matchblox/common/font.c2
2 files changed, 12 insertions, 2 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
diff --git a/matchblox/common/font.c b/matchblox/common/font.c
index 0332174..2f39d7f 100644
--- a/matchblox/common/font.c
+++ b/matchblox/common/font.c
@@ -6,7 +6,7 @@
#define TRUE !FALSE
#endif
-#include <GL/gl.h>
+#include <GL/glut.h>
#include <string.h>
#include "font.h"