From 2af64d42048e9e074f8d7cb5eedc0de4b33051fa Mon Sep 17 00:00:00 2001 From: faiface Date: Sat, 3 Dec 2016 01:02:01 +0100 Subject: [PATCH] improve code in NewWindow --- window.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.go b/window.go index e8ef87a..597a8ca 100644 --- a/window.go +++ b/window.go @@ -110,7 +110,7 @@ func NewWindow(config WindowConfig) (*Window, error) { return nil, errors.Wrap(err, "creating window failed") } - w.contextHolder.Context = w.contextHolder.Context.WithShader(defaultShader) + w.contextHolder.Context = pixelgl.Context{}.WithShader(defaultShader) return w, nil }