From 73c0c7579bbcf83f4b6f21af9d47f5e6b18abe68 Mon Sep 17 00:00:00 2001 From: Lilis Iskandar Date: Fri, 20 Apr 2018 11:45:56 +0800 Subject: [PATCH] examples: opengl: Update to work with latest binding Signed-off-by: Lilis Iskandar --- examples/opengl/opengl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } }