mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
[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:
parent
0a3c7b5b76
commit
d8cdaa7237
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue