mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
openal.GetError no longer exists, use Err instead.
This commit is contained in:
parent
633ee4096e
commit
27dc487d18
@ -44,8 +44,8 @@ func initialize() {
|
|||||||
context := device.CreateContext()
|
context := device.CreateContext()
|
||||||
context.Activate()
|
context.Activate()
|
||||||
|
|
||||||
if alErr := openal.GetError(); alErr != 0 {
|
if err := openal.Err(); err != nil {
|
||||||
log.Printf("OpenAL initialize error: %d", alErr)
|
log.Printf("OpenAL initialize error: %v", err)
|
||||||
close(ch)
|
close(ch)
|
||||||
// Graceful ending: Audio is not available on Travis CI.
|
// Graceful ending: Audio is not available on Travis CI.
|
||||||
return
|
return
|
||||||
@ -68,8 +68,8 @@ func initialize() {
|
|||||||
source.QueueBuffer(buffer)
|
source.QueueBuffer(buffer)
|
||||||
}
|
}
|
||||||
source.Play()
|
source.Play()
|
||||||
if alErr := openal.GetError(); alErr != 0 {
|
if err := openal.Err(); err != nil {
|
||||||
panic(fmt.Sprintf("OpenAL error: %d", alErr))
|
panic(fmt.Sprintf("OpenAL error: %v", err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user