mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +00:00
Switch allocation of sprite/wall/sector to individual aligned allocations instead of the weird thing I was doing with multiple pointers to different parts of a single large block
git-svn-id: https://svn.eduke32.com/eduke32@6381 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9b9b6baecd
commit
fa02c6433b
1 changed files with 8 additions and 0 deletions
|
@ -7633,6 +7633,7 @@ int32_t preinitengine(void)
|
|||
// Bprintf("FIXME: Allocating additional space beyond wall[] for editor bugs.\n");
|
||||
}
|
||||
|
||||
#if 0
|
||||
for (i=0; i<(signed)ARRAY_SIZE(dynarray); i++)
|
||||
size += dynarray[i].size;
|
||||
|
||||
|
@ -7646,6 +7647,13 @@ int32_t preinitengine(void)
|
|||
*dynarray[i].ptr = (int8_t *)blockptr + size;
|
||||
size += dynarray[i].size;
|
||||
}
|
||||
#else
|
||||
for (i = 0; i < (signed) ARRAY_SIZE(dynarray); i++)
|
||||
{
|
||||
Baligned_free(*dynarray[i].ptr);
|
||||
*dynarray[i].ptr = Xaligned_alloc(16, dynarray[i].size);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#elif !defined DEBUG_MAIN_ARRAYS
|
||||
|
|
Loading…
Reference in a new issue