summaryrefslogtreecommitdiff
blob: cb9f5e9a500c7342425487a0d6e0210c1e5e201e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/src/matrixview.c
+++ b/src/matrixview.c
@@ -537,7 +537,12 @@ void load_texture ()
 {
 	long a;
 
+#ifdef HAVE_LIBBZ2
 	LOAD_TEXTURE (font, cfont, cfont_compressedsize, cfont_size)
+#else
+	font = (unsigned char*) malloc (cfont_size);
+	memcpy (font, cfont, cfont_size);
+#endif
 
 	for (a = 0; a < 131072; a++) {
 		if ((a >> 9) & 2)
@@ -579,7 +584,11 @@ void ourBuildTextures ()
 		exit (-1);
 	}
 
+#ifdef HAVE_LIBBZ2
 	FREE_TEXTURE (font)
+#else
+	free (font);
+#endif
 
 	glBindTexture (GL_TEXTURE_2D, 3);