Skip to content

Commit ef44562

Browse files
Fix the use of presentCompleteSemaphore
It was probably a typo but presentCompleteSemaphores[] was used instead which conflicted with previous steps and the provided source code.
1 parent 4d94ef6 commit ef44562

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

en/03_Drawing_a_triangle/03_Drawing/02_Rendering_and_presentation.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ finished:
230230
----
231231
void drawFrame() {
232232
...
233-
auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphores[frameIndex], nullptr);
233+
auto [result, imageIndex] = swapChain.acquireNextImage(UINT64_MAX, *presentCompleteSemaphore, nullptr);
234234
}
235235
----
236236

@@ -240,7 +240,7 @@ Using the maximum value of a 64-bit unsigned integer means we effectively disabl
240240
The next two parameters specify synchronization objects that are to be signaled when the presentation engine is finished using the image.
241241
That's the point in time where we can start drawing to it.
242242
It is possible to specify a semaphore, fence or both.
243-
We're going to use our `presentCompleteSemaphores` for that purpose here.
243+
We're going to use our `presentCompleteSemaphore` for that purpose here.
244244

245245
The last parameter specifies a variable to output the index of the swap chain image that has become available.
246246
The index refers to the `VkImage` in our `swapChainImages` array.

0 commit comments

Comments
 (0)