setup app, run works but crashes in OpenGL

This commit is contained in:
Mitchell Hashimoto
2023-02-21 10:18:04 -08:00
parent f268f3955e
commit d368b8e727
3 changed files with 59 additions and 22 deletions

View File

@@ -101,9 +101,8 @@ pub fn main() !void {
// Run our app with a single initial window to start.
var app = try App.create(alloc, .{}, &config);
defer app.destroy();
try app.run();
if (build_config.app_runtime == .gtk) return;
_ = try app.newWindow(.{});
try app.run();
}
// Required by tracy/tracy.zig to enable/disable tracy support.