Bug 4578 - Bump MAX_LIGHTMAPS to 512
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2010-03-19 18:50 EDT by Ben Noordhuis
Modified: 2011-02-04 10:21:23 EST
1 user (show)

See Also:


Attachments
Proposed patch (1.41 KB, patch)
2010-10-14 02:04 EDT, gimhael

Description Ben Noordhuis 2010-03-19 18:50:38 EDT
Could someone bump MAX_LIGHTMAPS in renderer/tr_local.h to 512? There are people out there who manage to make maps with more than 256 lightmaps, see http://www.ioquake.org/forums/viewtopic.php?f=12&t=1541

Memory-wise this isn't a big issue. The lightmaps are image_t structures, 256 of them are about 5K.
Comment 1 gimhael 2010-10-14 02:04:57 EDT
Created attachment 2462 [details]
Proposed patch

This patch removes the MAX_LIGHTMAPS constant and allocates space for the lightmap pointers on the hunk.
Comment 2 Thilo Schulz 2011-02-04 10:21:23 EST
I like.