diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-01-23 03:40:04 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-01-23 23:17:07 +0400 |
commit | 24241abbd3482f14b1ab1985eab08e936d7c5d9b (patch) | |
tree | d7ddd440a77514b83eb3f89706eefe0c18fc1a06 /src | |
parent | 2fd1d3a18dfb150b694839c52b1378aa45881b95 (diff) |
Bump maximum lightmap size.
Bump surface extents limit to 2048 in OpenGL renderer. Bump
MAX_MAP_LIGHTING to 8 MiB.
Diffstat (limited to 'src')
-rw-r--r-- | src/refresh/gl/surf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/refresh/gl/surf.c b/src/refresh/gl/surf.c index 14f3828..6d1e3ab 100644 --- a/src/refresh/gl/surf.c +++ b/src/refresh/gl/surf.c @@ -105,8 +105,9 @@ DYNAMIC BLOCKLIGHTS ============================================================================= */ -// max 512 extents plus borders -#define MAX_BLOCKLIGHTS (34*34) +#define MAX_SURFACE_EXTENTS 2048 +#define MAX_LIGHTMAP_EXTENTS ((MAX_SURFACE_EXTENTS >> 4) + 1) +#define MAX_BLOCKLIGHTS (MAX_LIGHTMAP_EXTENTS * MAX_LIGHTMAP_EXTENTS) static float blocklights[MAX_BLOCKLIGHTS * 3]; @@ -444,8 +445,8 @@ static qboolean LM_BuildSurface(mface_t *surf, vec_t *vbo) bsp_t *bsp; // validate extents - if (surf->extents[0] < 0 || surf->extents[0] > 512 || - surf->extents[1] < 0 || surf->extents[1] > 512) { + if (surf->extents[0] < 0 || surf->extents[0] > MAX_SURFACE_EXTENTS || + surf->extents[1] < 0 || surf->extents[1] > MAX_SURFACE_EXTENTS) { Com_EPrintf("%s: bad surface extents\n", __func__); return qfalse; } |