diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-11-15 19:11:30 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-11-15 19:11:30 +0100 |
| commit | 6e6151d4ee8d5cf69dd8f180b07bea8ec19e78bb (patch) | |
| tree | 7dcc8543b99965258a0ebf0057d8b34da7786fd6 | |
| parent | 19c6ccabdedd4b5ee107f6a2eada0739db3e3099 (diff) | |
sokol_gfx.h vk: fix _sg_vk_staging_stream_image_data
| -rw-r--r-- | sokol_gfx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index 9f9bc5de..fb02dcc3 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -19576,6 +19576,7 @@ _SOKOL_PRIVATE void _sg_vk_staging_stream_image_data(_sg_image_t* img, const sg_ VkBufferImageCopy2 region; _sg_clear(®ion, sizeof(region)); VkCopyBufferToImageInfo2 copy_info; + _sg_clear(©_info, sizeof(copy_info)); _sg_vk_init_vk_image_staging_structs(img, _sg.vk.stage.stream.cur_buf, ®ion, ©_info); for (int mip_index = 0; mip_index < img->cmn.num_mipmaps; mip_index++) { const sg_range* src_mip = &src_data->mip_levels[mip_index]; |