diff --git a/examples/opengl/opengl.go b/examples/opengl/opengl.go index c63a0d7..9dbcec6 100644 --- a/examples/opengl/opengl.go +++ b/examples/opengl/opengl.go @@ -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() } }