OpenGL + Macbook Pro
-
Hello, I'm trying to run an OpenGL program and it's not working.
I have a Macbook Pro with Intel HD Graphics 3000, Mac OS X 10.8.4 and Qt 5.1.1.
OpenGL Extensions Viewer tells me that shader language 1.5 is supported, but when I try to run I get "ERROR: 0:1: '' : version '150' is not supported" so my shaders are not compiled.
I'm a completely newbie. How can I configure Qt to use GLSL 1.5?
Thanks in advance.
-
Hi to use GLSL 1.50 on OS X you need to have an OpenGL 3.2 Core Profile context.
Request this via QSurfaceFormat::setVersion() and setProfile() if using QOpenGLContext directly.
Or if using QGLWidget use QGLFormat.
HTH
-
Thank you a lot!