mirror of https://github.com/bjornbytes/lovr.git
Fix bundle allocation;
This commit is contained in:
parent
2570485b20
commit
dd043cbf07
|
@ -1856,7 +1856,6 @@ static uint32_t getLayout(gpu_slot* slots, uint32_t count) {
|
|||
return index;
|
||||
}
|
||||
|
||||
|
||||
static gpu_bundle* getBundle(uint32_t layoutIndex) {
|
||||
Layout* layout = &state.layouts.data[layoutIndex];
|
||||
BundlePool* pool = layout->head;
|
||||
|
@ -1888,7 +1887,7 @@ static gpu_bundle* getBundle(uint32_t layoutIndex) {
|
|||
lovrAssert(pool && gpu && bundles, "Out of memory");
|
||||
pool->gpu = gpu;
|
||||
pool->bundles = bundles;
|
||||
pool->cursor = 0;
|
||||
pool->cursor = 1;
|
||||
pool->next = layout->head;
|
||||
|
||||
gpu_bundle_pool_info info = {
|
||||
|
|
Loading…
Reference in New Issue