Skip to content

Commit 0b65719

Browse files
committed
Fixed capitalization of oldSwapchain member variable
1 parent f282775 commit 0b65719

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ Unless you really need to be able to read these pixels back and get predictable
484484
createInfo.oldSwapchain = VK_NULL_HANDLE;
485485
----
486486

487-
That leaves one last field, `oldSwapChain`.
487+
That leaves one last field, `oldSwapchain`.
488488
With Vulkan it's possible that your swap chain becomes invalid or unoptimized while your application is running, for example because the window was resized.
489489
In that case the swap chain actually needs to be recreated from scratch and a reference to the old one must be specified in this field.
490490
This is a complex topic that we'll learn more about in xref:03_Drawing_a_triangle/04_Swap_chain_recreation.adoc[a future chapter].

en/03_Drawing_a_triangle/04_Swap_chain_recreation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Note that in `chooseSwapExtent` we already query the new window resolution to ma
106106
That's all it takes to recreate the swap chain!
107107
However, the disadvantage of this approach is that we need to stop all rendering before creating the new swap chain.
108108
It is possible to create a new swap chain while drawing commands on an image from the old swap chain are still in-flight.
109-
You need to pass the previous swap chain to the `oldSwapChain` field in the `VkSwapchainCreateInfoKHR` struct and destroy the old swap chain as soon as you've finished using it.
109+
You need to pass the previous swap chain to the `oldSwapchain` field in the `VkSwapchainCreateInfoKHR` struct and destroy the old swap chain as soon as you've finished using it.
110110

111111
== Suboptimal or out-of-date swap chain
112112

0 commit comments

Comments
 (0)