Got latest mac book pro, but i am using OpenGL 2.1 and glsl version 1.2, how can i change this. Please help me! [ Xcode c++ ]
Crossbones+ - Reputation: 7040
Posted 01 September 2014 - 07:12 AM
When you allocate the pixel format, use the belonging attribute
* either, when using Cocoa
* or, when using CGL
You then get, despite of the "3_2", a context with the highest version available on your computer.
Edited by haegarr, 01 September 2014 - 07:12 AM.
Crossbones+ - Reputation: 8498
Posted 03 September 2014 - 05:30 PM
Please help me!
Umm... Relax dude? You sound like you're getting knifed to death.
"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"
Members - Reputation: 1021
Posted 03 September 2014 - 07:03 PM
but i am using OpenGL 2.1 and glsl version 1.2,
Opengl 2.1 should be able to compile GLSL code of 1.2 version (as any higher Opengl should compile downversioned GLSL language). You can specify explicitly what version to use by a macro in shader, like, #version 130 (hint for compiler and linker to version 1.3). If your GLSL shader code is exclusive on higher version than 1.2, and your limit is 1.2, setting macro to #version 120 and compile with this should give you at least errors, if any, on places where more advanced version does not conform to 1.2.
Moderators - Reputation: 11886
Posted 03 September 2014 - 08:49 PM
What do you mean by pixel format? Please Help. [ I am using OpenGl & SDL ] - Still cannot change version
Follow the instructions here:
Mavericks will allow you to choose between 2.1, 3.3, and 4.1.