Skip to content

Commit 189cd09

Browse files
authored
Fix compile error in 03_Physical_devices_and_queue_families.adoc (#173)
Fix errant printf call in 03_Physical_devices_and_queue_families.adoc
1 parent c9602bf commit 189cd09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

en/03_Drawing_a_triangle/00_Setup/03_Physical_devices_and_queue_families.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ VkPhysicalDevice handle added as a new class member.
3030

3131
[,c++]
3232
----
33-
vk::raii::PhysicalDevice physicalDevice;
33+
vk::raii::PhysicalDevice physicalDevice = nullptr;
3434
----
3535

3636
Listing the graphics cards is very similar to listing extensions and starts with
@@ -189,7 +189,6 @@ void pickPhysicalDevice() {
189189
found = found && extensionIter != extensions.end();
190190
}
191191
isSuitable = isSuitable && found;
192-
printf("\n");
193192
if (isSuitable) {
194193
physicalDevice = device;
195194
}

0 commit comments

Comments
 (0)