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