diff --git a/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc b/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc index 5ffe0290..5047177f 100644 --- a/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc +++ b/en/03_Drawing_a_triangle/01_Presentation/01_Swap_chain.adoc @@ -105,7 +105,7 @@ The next step is about querying the supported surface formats. [,c++] ---- -std::vector availableFormats = physicalDevice.getSurfaceFormatsKHR( surface ); +std::vector availableFormats = physicalDevice.getSurfaceFormatsKHR( *surface ); ---- Finally, querying the supported presentation modes works exactly the same way @@ -113,7 +113,7 @@ with `vk::raii::PhysicalDevice::getSurfacePresentModesKHR`: [,c++] ---- -std::vector availablePresentModes = physicalDevice.getSurfacePresentModesKHR( surface ); +std::vector availablePresentModes = physicalDevice.getSurfacePresentModesKHR( *surface ); ---- All the details are available now. Swap chain support is enough for this