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.
Created attachment 2462[details]
Proposed patch
This patch removes the MAX_LIGHTMAPS constant and allocates space for the lightmap pointers on the hunk.
Created attachment 2462 [details] Proposed patch This patch removes the MAX_LIGHTMAPS constant and allocates space for the lightmap pointers on the hunk.