nicer code

This commit is contained in:
faiface 2016-12-06 18:04:55 +01:00
parent fa82623835
commit 6268c52e77
1 changed files with 7 additions and 1 deletions

View File

@ -106,7 +106,13 @@ func NewWindow(config WindowConfig) (*Window, error) {
w.SetFullscreen(config.Fullscreen)
defaultShader, err := pixelgl.NewShader(&w.contextHolder, defaultVertexFormat, defaultUniformFormat, defaultVertexShader, defaultFragmentShader)
defaultShader, err := pixelgl.NewShader(
&w.contextHolder,
defaultVertexFormat,
defaultUniformFormat,
defaultVertexShader,
defaultFragmentShader,
)
if err != nil {
w.Delete()
return nil, errors.Wrap(err, "creating window failed")