diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/hrtf.zig | 3 | ||||
-rw-r--r-- | examples/play.zig | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/hrtf.zig b/examples/hrtf.zig index 723571d..9f92db5 100644 --- a/examples/hrtf.zig +++ b/examples/hrtf.zig @@ -28,7 +28,6 @@ const alc = zeal.alc; const Device = zeal.Device; const Context = zeal.Context; const Audio = zeal.Audio; -const useContext = zeal.useContext; const Buffer = zeal.Buffer; const Source = zeal.Source; @@ -50,7 +49,7 @@ pub fn main() !void { const audio = try Audio.read(allocator, path); defer audio.free(); - try useContext(context); + try context.makeCurrent(); const buffer = try Buffer.init(context, audio); defer buffer.deinit() catch unreachable; diff --git a/examples/play.zig b/examples/play.zig index 0a031f9..29c45b6 100644 --- a/examples/play.zig +++ b/examples/play.zig @@ -27,7 +27,6 @@ const alc = zeal.alc; const Device = zeal.Device; const Context = zeal.Context; const Audio = zeal.Audio; -const useContext = zeal.useContext; const Buffer = zeal.Buffer; const Source = zeal.Source; @@ -44,7 +43,7 @@ pub fn main() !void { const audio = try Audio.read(allocator, path); defer audio.free(); - try useContext(context); + try context.makeCurrent(); const buffer = try Buffer.init(context, audio); defer buffer.deinit() catch unreachable; |