diff options
author | Brian Paul <[email protected]> | 2013-11-24 07:04:33 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-04 15:40:32 -0700 |
commit | 50205e11c60ec2ef64a6408c7a95155afcf8802e (patch) | |
tree | 0587b8819fe69e2d1f0cd28a59e784a63146bd7f /src/mesa/main/arrayobj.h | |
parent | 314ccf69016d0025ce251155553cc448159a3b10 (diff) |
mesa: reduce memory used for short display lists
Display lists allocate memory in chunks of 256 tokens (1KB) at a time.
If an app creates many short display lists or uses glXUseXFont() this
can waste quite a bit of memory.
This patch uses realloc() to trim short lists and reduce the memory
used.
Also, null/zero-out some list construction fields in _mesa_EndList().
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.h')
0 files changed, 0 insertions, 0 deletions