From 39b4fccb440a1072d8a4207410d108fbb74b76a5 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 12 Sep 2019 12:34:12 +0000 Subject: [PATCH] move LMBLOCK_WIDTH/HEIGHT from bspfile.h to glquake.h git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1630 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/bspfile.h | 2 -- Quake/glquake.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Quake/bspfile.h b/Quake/bspfile.h index ae743e07..6da832f0 100644 --- a/Quake/bspfile.h +++ b/Quake/bspfile.h @@ -228,8 +228,6 @@ typedef struct } dledge_t; #define MAXLIGHTMAPS 4 -#define LMBLOCK_WIDTH 256 //FIXME: make dynamic. if we have a decent card there's no real reason not to use 4k or 16k (assuming there's no lightstyles/dynamics that need uploading...) -#define LMBLOCK_HEIGHT 256 //Alternatively, use texture arrays, which would avoid the need to switch textures as often. typedef struct { short planenum; diff --git a/Quake/glquake.h b/Quake/glquake.h index 5f0971b0..315be98b 100644 --- a/Quake/glquake.h +++ b/Quake/glquake.h @@ -292,6 +292,10 @@ extern overflowtimes_t dev_overflows; //this stores the last time overflow messa //johnfitz -- moved here from r_brush.c extern int gl_lightmap_format, lightmap_bytes; + +#define LMBLOCK_WIDTH 256 //FIXME: make dynamic. if we have a decent card there's no real reason not to use 4k or 16k (assuming there's no lightstyles/dynamics that need uploading...) +#define LMBLOCK_HEIGHT 256 //Alternatively, use texture arrays, which would avoid the need to switch textures as often. + typedef struct glRect_s { unsigned short l,t,w,h; } glRect_t;