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

Skip to content

Commit d0d958a

Browse files
authored
Update 02_Validation_layers.md
The address of the callback should be passed to the function instead of the callback itself, otherwise it doesn't compile.
1 parent f7363e9 commit d0d958a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

03_Drawing_a_triangle/00_Setup/02_Validation_layers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ couldn't be loaded. We can now call this function to create the extension
315315
object if it's available:
316316
317317
```c++
318-
if (CreateDebugReportCallbackEXT(instance, &createInfo, nullptr, callback) != VK_SUCCESS) {
318+
if (CreateDebugReportCallbackEXT(instance, &createInfo, nullptr, &callback) != VK_SUCCESS) {
319319
throw std::runtime_error("failed to set up debug callback!");
320320
}
321321
```

0 commit comments

Comments
 (0)