From 1b906d74dd1e9c133ee0ada7007534b13794c7c8 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 16 Sep 2016 21:55:21 +0000 Subject: [PATCH] Fix USE_OPENGL=0 build. git-svn-id: https://svn.eduke32.com/eduke32@5862 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/clip.c | 1 + polymer/eduke32/build/src/mhk.c | 1 + polymer/eduke32/build/src/palette.c | 3 +++ polymer/eduke32/build/src/tiles.c | 1 + 4 files changed, 6 insertions(+) diff --git a/polymer/eduke32/build/src/clip.c b/polymer/eduke32/build/src/clip.c index ac993ddcd..c7d65fbda 100644 --- a/polymer/eduke32/build/src/clip.c +++ b/polymer/eduke32/build/src/clip.c @@ -1,4 +1,5 @@ #include "build.h" +#include "baselayer.h" #include "engine_priv.h" int16_t clipnum; diff --git a/polymer/eduke32/build/src/mhk.c b/polymer/eduke32/build/src/mhk.c index 45131560f..058ac3993 100644 --- a/polymer/eduke32/build/src/mhk.c +++ b/polymer/eduke32/build/src/mhk.c @@ -1,6 +1,7 @@ #include "compat.h" #include "build.h" +#include "baselayer.h" #include "scriptfile.h" usermaphack_t g_loadedMapHack; // used only for the MD4 part diff --git a/polymer/eduke32/build/src/palette.c b/polymer/eduke32/build/src/palette.c index f4f99f553..f3e0efa40 100644 --- a/polymer/eduke32/build/src/palette.c +++ b/polymer/eduke32/build/src/palette.c @@ -1,5 +1,6 @@ #include "compat.h" #include "build.h" +#include "baselayer.h" #include "colmatch.h" #include "cache1d.h" #include "palette.h" @@ -263,7 +264,9 @@ uint32_t PaletteIndexFullbrights[8]; static void E_PostLoadPalette(void) { +#ifdef USE_OPENGL globalpal = 0; +#endif globalpalwritten = palookup[0]; setpalookupaddress(globalpalwritten); diff --git a/polymer/eduke32/build/src/tiles.c b/polymer/eduke32/build/src/tiles.c index 89559fc6c..45cedbf13 100644 --- a/polymer/eduke32/build/src/tiles.c +++ b/polymer/eduke32/build/src/tiles.c @@ -1,6 +1,7 @@ #include "compat.h" #include "build.h" +#include "baselayer.h" #include "engine_priv.h" #include "cache1d.h" #include "lz4.h"