another small fix
This commit is contained in:
parent
4480f61a0a
commit
62bc194ee4
|
@ -27,9 +27,7 @@ func init() {
|
||||||
// It must be called under the presence of an active OpenGL context, e.g., always after calling window.MakeContextCurrent().
|
// It must be called under the presence of an active OpenGL context, e.g., always after calling window.MakeContextCurrent().
|
||||||
// Also, always call this function when switching contexts.
|
// Also, always call this function when switching contexts.
|
||||||
func Init() {
|
func Init() {
|
||||||
err := DoErr(func() error {
|
err := gl.Init()
|
||||||
return gl.Init()
|
|
||||||
})
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue