summary refs log tree commit diff
path: root/examples/hrtf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hrtf.zig')
-rw-r--r--examples/hrtf.zig3
1 files changed, 1 insertions, 2 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;