Avoid clang/gcc warnings: -Wnontrivial-memaccess in backends. (#8295, #8129, #8135)

This commit is contained in:
ocornut
2025-01-08 11:44:00 +01:00
parent 3115ae0815
commit 0514332474
3 changed files with 3 additions and 3 deletions

View File

@@ -225,7 +225,7 @@ struct ImGui_ImplVulkan_Texture
VkImageView ImageView;
VkDescriptorSet DescriptorSet;
ImGui_ImplVulkan_Texture() { memset(this, 0, sizeof(*this)); }
ImGui_ImplVulkan_Texture() { memset((void*)this, 0, sizeof(*this)); }
};
// Vulkan data