improve code in NewWindow

This commit is contained in:
faiface 2016-12-03 01:02:01 +01:00
parent 966bce8c2c
commit 2af64d4204
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func NewWindow(config WindowConfig) (*Window, error) {
return nil, errors.Wrap(err, "creating window failed") 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 return w, nil
} }