From 4740f6b8efc014cbf7a4354ec33c8c29894762b6 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 12 Mar 2023 16:07:41 +0100 Subject: Fix some compilation warnings + release build Fix element by element copy of imgui vertices --- api-test/vk-device.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api-test/vk-device.cpp') diff --git a/api-test/vk-device.cpp b/api-test/vk-device.cpp index 42f6269..2b9f7eb 100644 --- a/api-test/vk-device.cpp +++ b/api-test/vk-device.cpp @@ -826,6 +826,7 @@ bool vkdevice::device_support_features(VkPhysicalDevice physical_dev) { } void vkdevice::create_debug_layer_callback() { +#ifdef _DEBUG VkDebugUtilsMessengerCreateInfoEXT create_info{ .sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT, .pNext = nullptr, @@ -840,6 +841,7 @@ void vkdevice::create_debug_layer_callback() { }; VKCHECK(vkCreateDebugUtilsMessengerEXT(instance, &create_info, nullptr, &debug_messenger)); +#endif // _DEBUG } @@ -996,7 +998,7 @@ void device_texture::create_views() { }, }; - for (auto mip_index{ 0 }; mip_index < mips; mip_index++) { + for (auto mip_index{ 0U }; mip_index < mips; mip_index++) { create_info.subresourceRange.baseMipLevel = mip_index; VKCHECK(vkCreateImageView(device, &create_info, nullptr, &mips_views[mip_index])); } -- cgit v1.3