Fixed small mistake in device selection loop. Added info about selected device name in Tutorial01.

This commit is contained in:
Pawel Lapinski
2017-09-19 21:28:15 +02:00
parent 71151a6370
commit 340a7a664a
3 changed files with 4 additions and 0 deletions

View File

@@ -251,6 +251,7 @@ namespace ApiWithoutSecrets {
for( uint32_t i = 0; i < num_devices; ++i ) {
if( CheckPhysicalDeviceProperties( physical_devices[i], selected_graphics_queue_family_index, selected_present_queue_family_index ) ) {
Vulkan.PhysicalDevice = physical_devices[i];
break;
}
}
if( Vulkan.PhysicalDevice == VK_NULL_HANDLE ) {