From c419fae31b7b46ec74b4e16f0aee1073c69aed4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Szil=C3=A1rd=20Bir=C3=B3?=
Date: Wed, 23 Oct 2019 13:23:36 +0200
Subject: [PATCH] Fix compiling without OpenGL
---
source/build/include/build.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/source/build/include/build.h b/source/build/include/build.h
index 0fe195e8a..e116fd3c5 100644
--- a/source/build/include/build.h
+++ b/source/build/include/build.h
@@ -1342,6 +1342,10 @@ extern GrowArray g_defModules;
extern GrowArray g_clipMapFiles;
#endif
+EXTERN intptr_t voxoff[MAXVOXELS][MAXVOXMIPS]; // used in KenBuild
+EXTERN int8_t voxreserve[(MAXVOXELS+7)>>3];
+EXTERN int8_t voxrotate[(MAXVOXELS+7)>>3];
+
#ifdef USE_OPENGL
// TODO: dynamically allocate this
@@ -1361,9 +1365,6 @@ typedef struct
# define EXTRATILES (MAXTILES/8)
-EXTERN intptr_t voxoff[MAXVOXELS][MAXVOXMIPS]; // used in KenBuild
-EXTERN int8_t voxreserve[(MAXVOXELS+7)>>3];
-EXTERN int8_t voxrotate[(MAXVOXELS+7)>>3];
EXTERN int32_t mdinited;
EXTERN tile2model_t tile2model[MAXTILES+EXTRATILES];