From 382efbbb8a866db862770c6b5a28f778c0749ce3 Mon Sep 17 00:00:00 2001 From: Lilis Iskandar Date: Fri, 20 Apr 2018 11:47:25 +0800 Subject: [PATCH] examples: opengl3: Update to work with latest binding Signed-off-by: Lilis Iskandar --- examples/opengl3/opengl3.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/opengl3/opengl3.go b/examples/opengl3/opengl3.go index af8a545..1b53bc0 100644 --- a/examples/opengl3/opengl3.go +++ b/examples/opengl3/opengl3.go @@ -71,7 +71,7 @@ func main() { panic(err) } defer window.Destroy() - context, err = sdl.GLCreateContext(window) + context, err = window.GLCreateContext() if err != nil { panic(err) } @@ -136,7 +136,7 @@ func main() { } } drawgl() - sdl.GLSwapWindow(window) + window.GLSwap() } }