examples: opengl: Update to work with latest binding
Signed-off-by: Lilis Iskandar <lilis@veand.co>
This commit is contained in:
parent
d553067005
commit
73c0c7579b
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue