Fix POLYMER=0 build and a couple of unused-variable warnings with it. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4764 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-11-25 23:46:28 +00:00
parent 4e034e1331
commit 112d650843
2 changed files with 5 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include "glbuild.h"
#include "hightile.h"
#include "baselayer.h" // glinfo
typedef struct { uint8_t r, g, b, a; } coltype;

View file

@ -85,8 +85,10 @@ static int32_t allocvbos = 0, curvbo = 0;
static GLuint *vertvbos = NULL;
static GLuint *indexvbos = NULL;
#ifdef POLYMER
static int32_t *tribuf = NULL;
static int32_t tribufverts = 0;
#endif
static mdmodel_t *mdload(const char *);
static void mdfree(mdmodel_t *);
@ -143,7 +145,9 @@ void freeallmodels()
}
md_freevbos();
#ifdef POLYMER
DO_FREE_AND_NULL(tribuf);
#endif
}