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

Skip to content

Commit 6358073

Browse files
author
Diana
authored
Fix type inconsistency.
glfwGetRequiredInstanceExtensions takes a uint32_t, and it's best for portable code to be explicit in its types.
1 parent 44fcf5c commit 6358073

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

03_Drawing_a_triangle/00_Setup/01_Instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ the window system. GLFW has a handy built-in function that returns the
6262
extension(s) it needs to do that which we can pass to the struct:
6363

6464
```c++
65-
unsigned int glfwExtensionCount = 0;
65+
uint32_t glfwExtensionCount = 0;
6666
const char** glfwExtensions;
6767

6868
glfwExtensions = glfwGetRequiredInstanceExtensions(&glfwExtensionCount);

0 commit comments

Comments
 (0)