Closed qhdwight closed 5 years ago
In a different go file I was accidentally importing the wrong version (v4.6 instead of v4.1). This is why you see that in the error logs.
Hmm, I wonder if there’s anything in common here with https://github.com/golang/go/issues/35177.
Thank you. I had the same problem.
go.mod:
I am first initializing GLFW, setting window hints to use core profile forward compatible with 4.1, making content current, then calling gl.Init(). That all works fine with no panicking. However, as soon as I call gl.CreateShader with the gl.VERTEX_SHADER (0x8B31) code I get a segmentation violation.
~I will also note that this same program works fine on my Windows machine.~ It does not work if I use OpenGL 4.1, but works if I use 4.6 (which is not available on macOS)
I am on macOS Catalina 10.15.
My code is in a few different places but I have: