mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 03:55:26 +00:00
Fixed small mistake in device selection loop. Added info about selected device name in Tutorial01.
This commit is contained in:
@@ -275,6 +275,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 ) {
|
||||
|
||||
Reference in New Issue
Block a user