From 27dc487d18c160ac780c6173dfeaa71e2281931e Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Tue, 5 Jan 2016 08:08:21 +1100 Subject: [PATCH] openal.GetError no longer exists, use Err instead. --- exp/audio/inner/audio_openal.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exp/audio/inner/audio_openal.go b/exp/audio/inner/audio_openal.go index 38c2acf24..730abc524 100644 --- a/exp/audio/inner/audio_openal.go +++ b/exp/audio/inner/audio_openal.go @@ -44,8 +44,8 @@ func initialize() { context := device.CreateContext() context.Activate() - if alErr := openal.GetError(); alErr != 0 { - log.Printf("OpenAL initialize error: %d", alErr) + if err := openal.Err(); err != nil { + log.Printf("OpenAL initialize error: %v", err) close(ch) // Graceful ending: Audio is not available on Travis CI. return @@ -68,8 +68,8 @@ func initialize() { source.QueueBuffer(buffer) } source.Play() - if alErr := openal.GetError(); alErr != 0 { - panic(fmt.Sprintf("OpenAL error: %d", alErr)) + if err := openal.Err(); err != nil { + panic(fmt.Sprintf("OpenAL error: %v", err)) } }