1

I've had a problem after converting some C++ code to Haskell on Windows. The code in C++ works fine, but in Haskell any OpenGL function fails to load, i.e.

user error (unknown OpenGL extension entry glGenVertexArrays, check for
OpenGL 3.1)

Whereas the function works fine in C++ (where I'm using glLoadGen). I've loaded both into depends.exe and don't see any difference in what they use from OpenGL32.dll.

I'm using OpenGLRaw-1.3.0.0.

4

1 回答 1

2

这是由于在调用Graphics.UI.GLFW.makeContextCurrent. 在任何 GL 功能可用之前,需要有一个当前上下文。

于 2014-02-18T02:30:51.157 回答