Commit 0697e572 authored by Niklas Haas's avatar Niklas Haas
Browse files

vulkan: fix compilation on 32-bit

VkDeviceSize != size_t on 32-bit platforms, which makes this a pointer
type mismatch.

parent 2d2aafff
Pipeline #78568 passed with stages
in 9 minutes and 46 seconds
......@@ -3228,8 +3228,8 @@ static void vk_pass_run(const struct pl_gpu *gpu,
buf_barrier(gpu, cmd, vert, VK_PIPELINE_STAGE_VERTEX_INPUT_BIT,
vbo_flags, 0, vert->params.size, BUF_READ);
vk->CmdBindVertexBuffers(cmd->buf, 0, 1, &vert_vk->mem.buf,
&(size_t){vert_vk->mem.offset + params->buf_offset});
VkDeviceSize offset = vert_vk->mem.offset + params->buf_offset;
vk->CmdBindVertexBuffers(cmd->buf, 0, 1, &vert_vk->mem.buf, &offset);
if (index) {
if (index != vert) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment