Skip to content
Snippets Groups Projects
Commit 5e20cee4 authored by David Parks's avatar David Parks
Browse files

SH-1897 Don't use GLSL 1.20 unless the GL version is >= 2.1f

parent ad4b559f
No related branches found
No related tags found
No related merge requests found
...@@ -462,7 +462,11 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade ...@@ -462,7 +462,11 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
GLcharARB* text[1024]; GLcharARB* text[1024];
GLuint count = 0; GLuint count = 0;
if (gGLManager.mGLVersion < 3.f) if (gGLManager.mGLVersion < 2.1f)
{
text[count++] = strdup("#version 110\n");
}
else if (gGLManager.mGLVersion < 3.f)
{ {
//set version to 1.20 //set version to 1.20
text[count++] = strdup("#version 120\n"); text[count++] = strdup("#version 120\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment