GFX: make OS X work with OpenGL 2.1 shaders

This commit is contained in:
Pawel Kolodziejski 2015-02-21 13:43:30 +01:00
parent f7407f35f2
commit c3da0c33a4
3 changed files with 41 additions and 13 deletions

View file

@ -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