main update to new runtime API

This commit is contained in:
Mitchell Hashimoto
2023-02-22 21:11:59 -08:00
parent 2adb0c9234
commit 2dda1d65a4

View File

@ -90,7 +90,6 @@ pub fn main() !void {
try config.finalize();
std.log.debug("config={}", .{config});
if (true) {
// Create our app state
var app = try App.create(alloc, &config);
defer app.destroy();
@ -104,19 +103,6 @@ pub fn main() !void {
// Run the GUI event loop
try app_runtime.run();
return;
}
// Run our app with a single initial window to start.
var app = try App.create(alloc, .{}, &config);
defer app.destroy();
if (build_config.app_runtime == .gtk) {
try app.runtime.newWindow();
while (true) try app.runtime.wait();
return;
}
_ = try app.newWindow(.{});
try app.run();
}
// Required by tracy/tracy.zig to enable/disable tracy support.