Minor cleanup work.

This commit is contained in:
asuessenbach
2021-11-03 09:01:24 +01:00
parent b7ce8315be
commit 2a55e8ef2f
3 changed files with 37 additions and 47 deletions

View File

@@ -1165,8 +1165,7 @@ namespace vk
{
#if defined( NDEBUG )
// in non-debug mode just use the InstanceCreateInfo for instance creation
vk::StructureChain<vk::InstanceCreateInfo> instanceCreateInfo(
{ {}, &applicationInfo, layers, extensions } );
vk::StructureChain<vk::InstanceCreateInfo> instanceCreateInfo( { {}, &applicationInfo, layers, extensions } );
#else
// in debug mode, addionally use the debugUtilsMessengerCallback in instance creation!
vk::DebugUtilsMessageSeverityFlagsEXT severityFlags( vk::DebugUtilsMessageSeverityFlagBitsEXT::eWarning |