GFX: make OS X work with OpenGL 2.1 shaders
This commit is contained in:
parent
f7407f35f2
commit
c3da0c33a4
3 changed files with 41 additions and 13 deletions
|
@ -74,7 +74,11 @@ static GLuint createCompatShader(const char *shaderSource, GLenum shaderType, co
|
|||
#ifdef USE_GLES2
|
||||
"#version 100\n",
|
||||
#else
|
||||
#ifdef MACOSX
|
||||
"#version 120\n",
|
||||
#else
|
||||
"#version 130\n",
|
||||
#endif
|
||||
#endif
|
||||
compatSource,
|
||||
shaderSource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue