Fix bundle allocation;

This commit is contained in:
bjorn 2022-05-30 15:06:57 -07:00
parent 2570485b20
commit dd043cbf07
1 changed files with 1 additions and 2 deletions

View File

@ -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 = {