OpenGL + Macbook Pro
Game Development
3
Posts
2
Posters
2.0k
Views
1
Watching
-
wrote on 6 Oct 2013, 05:06 last edited by
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.
-
wrote on 6 Oct 2013, 08:38 last edited by
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
-
wrote on 6 Oct 2013, 22:04 last edited by
Thank you a lot!
3/3