PDA

View Full Version : [OSX] using VAO in core profile with Qt



robinfaury
05-19-2016, 09:28 AM
Hello,

I use an OpenGL surface in opengl 3.2 core profile with Qt 5.6.
When I call glGenVertexArray(1, &vao); I have the error: GL_INVALID_OPERATION 0x0502
This is happen only on mac (10.10.2).

Best regards,
Robin

arekkusu
05-19-2016, 11:06 AM
That might happen if you are using a library that sets up GL function pointers for you, like GLEW, and it incorrectly uses glGenVertexArraysAPPLE() instead of GenVertexArrays().

Set breakpoints on both functions, and see which one you actually hit in libGL.dylib.

robinfaury
05-25-2016, 03:07 AM
Thank you!
you are right. The lidGL.dylib loaded ins't the good one.