improve code in NewWindow
This commit is contained in:
parent
966bce8c2c
commit
2af64d4204
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue