summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index e6eea7b..4b116c8 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -23,10 +23,12 @@ const configuration = @import("config.zig");
 const gf = @import("gfz");
 const gl = @import("zgl");
 const legacy = @cImport(@cInclude("Game.h"));
+const misc = @import("misc.zig");
 
 comptime {
     // Work around lazy compilation.
-    @export(@import("misc.zig").loadTexture, .{ .name = "loadTexture" });
+    @export(misc.loadSound, .{ .name = "loadSound" });
+    @export(misc.loadTexture, .{ .name = "loadTexture" });
 }
 
 var game: *legacy.Game = undefined;
@@ -78,7 +80,7 @@ pub fn main() !void {
     defer device.deinit() catch unreachable;
     const context = try al.Context.init(device, &.{});
     defer context.deinit() catch unreachable;
-    try al.useContext(context);
+    try context.makeCurrent();
 
     legacy.initGame(game);
     defer legacy.closeGame(game);