examples: opengl3: 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:47:25 +08:00
parent 73c0c7579b
commit 382efbbb8a
1 changed files with 2 additions and 2 deletions

View File

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