Skip to content

Commit

Permalink
Merge pull request #80781 from bitsawer/fix_vulkan_texture_upload
Browse files Browse the repository at this point in the history
Fix Vulkan texture update
  • Loading branch information
akien-mga committed Aug 21, 2023
2 parents cc01b28 + 3daa19d commit fef62a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vulkan/rendering_device_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,7 @@ Error RenderingDeviceVulkan::_texture_update(RID p_texture, uint32_t p_layer, co

vkCmdCopyBufferToImage(command_buffer, staging_buffer_blocks[staging_buffer_current].buffer, texture->image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, &buffer_image_copy);

staging_buffer_blocks.write[staging_buffer_current].fill_amount += alloc_size;
staging_buffer_blocks.write[staging_buffer_current].fill_amount = alloc_offset + alloc_size;
}
}
}
Expand Down

0 comments on commit fef62a6

Please sign in to comment.