When running the tests on my MacBook Pro I get an GL_INVALID_OPERATION error on generating a buffer. Seems like the Mac only creates an OpenGL 2.1.0 context. I found that GLFW needs additional hints on Mac. See http://www.glfw.org/faq.html#how-do-i-create-an-opengl-30-context
Adding the following lines after GLFW.Init() solved the problem for me.
@osx? begin
GLFW.WindowHint(GLFW.CONTEXT_VERSION_MAJOR, 4)
GLFW.WindowHint(GLFW.CONTEXT_VERSION_MINOR, 1)
GLFW.WindowHint(GLFW.OPENGL_FORWARD_COMPAT, GL_TRUE)
GLFW.WindowHint(GLFW.OPENGL_PROFILE, GLFW.OPENGL_CORE_PROFILE)
end : ()
I am still very new to Julia so there might be a better solution but maybe this helps somebody else.
When running the tests on my MacBook Pro I get an GL_INVALID_OPERATION error on generating a buffer. Seems like the Mac only creates an OpenGL 2.1.0 context. I found that GLFW needs additional hints on Mac. See http://www.glfw.org/faq.html#how-do-i-create-an-opengl-30-context
Adding the following lines after GLFW.Init() solved the problem for me.
I am still very new to Julia so there might be a better solution but maybe this helps somebody else.