[ error ] ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile
[ error ] ofShader: GL_FRAGMENT_SHADER shader reports:
ERROR: 0:1: ‘’ : version ‘150’ is not supported
[ error ] ofShader: GL_FRAGMENT_SHADER, offending line 1 :
1 #version 150
2
3 in vec4 colorVarying;
[ error ] ofShader: checkProgramLinkStatus(): program failed to link
[ error ] ofShader: ofShader: program reports:
ERROR: One or more attached shaders not successfully compiled
//we load a font and tell OF to make outlines so we can draw it as GL shapes rather than textures
font.load(“type/verdana.ttf”, 100, true, false, true, 0.4, 72); #ifdef TARGET_OPENGLES
shader.load(“shaders_gles/noise.vert”,“shaders_gles/noise.frag”); #else
//if(ofIsGLProgrammableRenderer()){
shader.load(“shaders_gl3/noise.vert”, “shaders_gl3/noise.frag”);
//}else{
// shader.load(“shaders/noise.vert”, “shaders/noise.frag”);
//} #endif
doShader = true;
}
[verbose] GL Version:2.1 ATI-1.38.3
[verbose] ofShader: checkAndCreateProgram(): creating GLSL program
[ error ] ofShader: setupShaderFromSource(): GL_VERTEX_SHADER shader failed to compile
[ error ] ofShader: GL_VERTEX_SHADER shader reports:
ERROR: 0:1: ‘’ : version ‘150’ is not supported
[ error ] ofShader: GL_VERTEX_SHADER, offending line 1 :
1 #version 150
2
3 in vec4 position;
[ error ] ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile
[ error ] ofShader: GL_FRAGMENT_SHADER shader reports:
ERROR: 0:1: ‘’ : version ‘150’ is not supported
[verbose] ofShader: linkProgram(): attaching GL_FRAGMENT_SHADER shader to program 1
[verbose] ofShader: linkProgram(): attaching GL_VERTEX_SHADER shader to program 1
[ error ] ofShader: checkProgramLinkStatus(): program failed to link
[ error ] ofShader: ofShader: program reports:
ERROR: One or more attached shaders not successfully compiled
[verbose] ofShader: unload(): detaching and deleting GL_FRAGMENT_SHADER shader from program 1
[verbose] ofShader: unload(): detaching and deleting GL_VERTEX_SHADER shader from program 1
If I force the programable it fails
It can’t see the GFX as 4.1 openGL at all.
Im on 10.11.1 (whatever the latest is) with Dual D700 AMD setup.
There is something strange going on with mac’s core openGL and the supported openGL.
However, if you just need to compile 150, you can do so by specifying >3.3 With current 0.9.6 you can select your GL Version by adding in the main():
settings.setGLVersion(4,1);
on 750m (and D700 i guess) and 10.12 you’ve 4.1, but its not selected by default… for version 150 GLSL shader to compile you need at least 3.3. I used to have the same problem as by default osx is providing 2.1 (? or smth), which supports only up to 120.
It is still confusing for me since I didn’t find alternative drivers or way to update manually openGL, but in the end of the day it seem you don’t need to. Maybe back then was a problem and might be issue once again in the future, but here a full list with the support of openGL for mac video cards.