Ticket #96 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

Honor GL's reported max texture size for lightmap blocks.

Reported by: jdolan Assigned to: jdolan
Priority: major Component: quake2world
Keywords: Cc: ingar

Description

Currently I just assume cards can do 2048x2048 lightmap blocks. Apparently, some drivers will flat out crash when you tell them to allocate a texture larger than their proclaimed max resolution. I should check and honor this per-card setting.

Change History

06/23/08 22:16:09 changed by jdolan

  • status changed from new to closed.
  • resolution set to fixed.

[1208] was committed against this. r_lightmapsize is now defaulted to 0, which means honor the card's max texture size. This may actually provide a slight performance improvement on some higher end cards, as GeForce? 8 hardware is capable of 8192x8192 textures, thus requiring fewer lightmap blocks and lightmap glBindTexture calls.