Move macOS benchmarking to NSApp rendering loop, makes example windows visible vs. headless
This commit is contained in:
parent
1b3fe76cdb
commit
62f6dcf767
2 changed files with 22 additions and 1 deletions
|
|
@ -1256,7 +1256,7 @@ int main(const int argc, const char *argv[])
|
|||
vulkanExample->setupWindow(nullptr);
|
||||
vulkanExample->prepare();
|
||||
vulkanExample->renderLoop();
|
||||
delete(vulkanExample); // SRS - handle benchmarking case, normally deleted by applicationWillTerminate() event handler
|
||||
delete(vulkanExample);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue