[vulkan] Fix some errors in shadow map setup

I had forgotten to test with nq, so I had missed that I'd messed up cube
map requests and the image map. This gets nq working again.
This commit is contained in:
Bill Currie 2022-10-27 13:29:14 +09:00
parent 0a3c7b5b76
commit d8cdaa7237

View file

@ -711,13 +711,13 @@ build_shadow_maps (lightingctx_t *lctx, vulkan_ctx_t *ctx)
maps[numMaps++] = (mapdesc_t) {
.size = size,
.layers = numLayers,
.cube = 0,
.cube = 1,
};
numLayers = 0;
}
size = abs ((int) lights[li].color[3]);
}
imageMap[li] = lctx->light_images.size;
imageMap[li] = numMaps;
lr->size = size;
lr->layer = numLayers;
lr->numLayers = layers;
@ -728,7 +728,7 @@ build_shadow_maps (lightingctx_t *lctx, vulkan_ctx_t *ctx)
maps[numMaps++] = (mapdesc_t) {
.size = size,
.layers = numLayers,
.cube = 0,
.cube = 1,
};
}
@ -750,7 +750,7 @@ build_shadow_maps (lightingctx_t *lctx, vulkan_ctx_t *ctx)
};
numLayers = 0;
}
imageMap[li] = lctx->light_images.size;
imageMap[li] = numMaps;
lr->size = size;
lr->layer = numLayers;
lr->numLayers = layers;