nicer code
This commit is contained in:
parent
fa82623835
commit
6268c52e77
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue