mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-24 21:31:22 +00:00
[qfvis] Initialize set pool arrays
The relatively recent changes to ALLOC missed the set pools used in fat pvs calculations.
This commit is contained in:
parent
f2cb62f2c8
commit
9f8a6f5d62
1 changed files with 7 additions and 1 deletions
|
@ -301,7 +301,13 @@ reconstruct_clusters (void)
|
|||
static void
|
||||
allocate_data (void)
|
||||
{
|
||||
set_pool = calloc (options.threads, sizeof (set_pool_t));
|
||||
set_pool = malloc (sizeof (set_pool_t[options.threads]));
|
||||
for (int i = 0; i < options.threads; i++) {
|
||||
set_pool[i] = (set_pool_t) {
|
||||
.set_blocks = DARRAY_STATIC_INIT (8),
|
||||
.set_iter_blocks = DARRAY_STATIC_INIT (8),
|
||||
};
|
||||
}
|
||||
|
||||
base_pvs = malloc (num_clusters * sizeof (set_t));
|
||||
fat_pvs = malloc (num_clusters * sizeof (set_t));
|
||||
|
|
Loading…
Reference in a new issue