Closed jodelamo closed 7 years ago
this fairly minimal program
Did you find that minimal program somewhere within our resources?
I believe you're missing important calls to window.MakeContextCurrent
and gl.Init
. You can't call any gl
functions until you do gl.Init
successfully:
https://godoc.org/github.com/go-gl/gl/v2.1/gl#Init
Try the example at https://github.com/go-gl/examples/tree/master/gl21-cube, does it work?
You're so right. I was mixing up gl.Init
with glfw.Init
. Thank you!
Go version:
OS version (macOS):
I'm getting a fatal error once I import and use functions from
github.com/go-gl/gl/v2.1/gl
in this fairly minimal program:The error being the following: