OpenGL Vertex Buffer doesn't draw anything in golang

前端 未结 4 1719
忘了有多久
忘了有多久 2021-01-03 05:52

I tried to use this tutorial with Golang: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/ The go-version opens the window and makes the bac

4条回答
  •  囚心锁ツ
    2021-01-03 06:34

    I was having the same problem, ended up being that for some reason calling glfw.OpenWindowHint was screwing it up. It would request the correct context, my opengl version would match, I would get no errors at all, but it wouldn't work. If I leave out the hint, I get a 4.3 context and everything seems to work.

    Even if I request 4.3 in the hint, it doesn't work. If I request something else, my opengl string matches, but once again it doesn't work.

    Hope this helps

提交回复
热议问题