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

Skip to content

Commit d16a7bd

Browse files
authored
Merge pull request #27 from idlewan/patch-1
Fix code error in validation layers chapter
2 parents f7363e9 + d0d958a commit d16a7bd

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)