mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +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[] = {
|
||||
{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE, 0, mat->memory, 0, MAT_SIZE },
|
||||
{ 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},
|
||||
};
|
||||
dfunc->vkFlushMappedMemoryRanges (device->dev, 2, ranges);
|
||||
|
|
Loading…
Reference in a new issue