diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2023-03-12 16:07:41 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2023-03-12 16:07:41 +0100 |
| commit | 4740f6b8efc014cbf7a4354ec33c8c29894762b6 (patch) | |
| tree | 997d4ec7d2fe2c2f2506a2d5343babce7e930581 /api-test/vk-device.cpp | |
| parent | a87ad2eac867b77a75e05ad48bb3ee622e5735d3 (diff) | |
Fix some compilation warnings + release build
Fix element by element copy of imgui vertices
Diffstat (limited to 'api-test/vk-device.cpp')
| -rw-r--r-- | api-test/vk-device.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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])); } |
