Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10a5a4f

Browse files
committed
Correct uninitialized struct in code sample
1 parent 893a0e8 commit 10a5a4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

03_Drawing_a_triangle/01_Presentation/00_Window_surface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ important parameters: `hwnd` and `hinstance`. These are the handles to the
4848
window and the process.
4949

5050
```c++
51-
VkWin32SurfaceCreateInfoKHR createInfo;
51+
VkWin32SurfaceCreateInfoKHR createInfo = {};
5252
createInfo.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR;
5353
createInfo.hwnd = glfwGetWin32Window(window);
5454
createInfo.hinstance = GetModuleHandle(nullptr);

0 commit comments

Comments
 (0)