examples: opengl: Update to work with latest binding

Signed-off-by: Lilis Iskandar <lilis@veand.co>
This commit is contained in:
Lilis Iskandar 2018-04-20 11:45:56 +08:00
parent d553067005
commit 73c0c7579b
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func main() {
panic(err)
}
defer window.Destroy()
context, err = sdl.GLCreateContext(window)
context, err = window.GLCreateContext()
if err != nil {
panic(err)
}
@ -55,7 +55,7 @@ func main() {
}
}
drawgl()
sdl.GLSwapWindow(window)
window.GLSwap()
}
}