app: only create first window in exe mode

This commit is contained in:
Mitchell Hashimoto
2023-02-15 21:53:14 -08:00
parent 26182611c6
commit ba8f142770
3 changed files with 17 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ pub fn main() !void {
// We want to log all our errors
glfw.setErrorCallback(glfwErrorCallback);
// Run our app
// Run our app with a single initial window to start.
var app = try App.create(alloc, &config);
defer app.destroy();
try app.run();