mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[vulkan] Calculate matrix offset correctly
When I changed the matrices from an array of floats to an array of vec4f_t, I forgot to update the flush offsets. Yay for having a Vulkan-capable Intel device with its different alignment requirements.
This commit is contained in:
parent
25559243ae
commit
5b1052087a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ Vulkan_CalcProjectionMatrices (vulkan_ctx_t *ctx)
|
||||||
VkMappedMemoryRange ranges[] = {
|
VkMappedMemoryRange ranges[] = {
|
||||||
{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE, 0, mat->memory, 0, MAT_SIZE },
|
{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE, 0, mat->memory, 0, MAT_SIZE },
|
||||||
{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE, 0, mat->memory,
|
{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE, 0, mat->memory,
|
||||||
(mat->projection_3d - mat->projection_2d) * sizeof (float),
|
(mat->projection_3d - mat->projection_2d) * sizeof (mat->projection_2d[0]),
|
||||||
MAT_SIZE},
|
MAT_SIZE},
|
||||||
};
|
};
|
||||||
dfunc->vkFlushMappedMemoryRanges (device->dev, 2, ranges);
|
dfunc->vkFlushMappedMemoryRanges (device->dev, 2, ranges);
|
||||||
|
|
Loading…
Reference in a new issue