diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-24 15:30:48 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-24 15:30:48 -0500 |
commit | ad4b559f9fb7c39a090898207c46d4c77d3560bf (patch) | |
tree | 486f1067b15d6bbd4422804c3c470aca196093c2 /indra/newview | |
parent | 253642ccff9b08da5e62449ff62b23e986dcb77d (diff) |
SH-1903 Fix for silly shader compiler error.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewershadermgr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp index 0e3a0ef507..592923ee07 100644 --- a/indra/newview/llviewershadermgr.cpp +++ b/indra/newview/llviewershadermgr.cpp @@ -722,6 +722,11 @@ BOOL LLViewerShaderMgr::loadBasicShaders() shaders.reserve(13); S32 ch = gGLManager.mNumTextureImageUnits-1; + if (gGLManager.mGLVersion < 3.1f) + { //force to 1 texture index channel for old drivers + ch = 1; + } + std::vector<S32> index_channels; index_channels.push_back(-1); shaders.push_back( make_pair( "windlight/atmosphericsVarsF.glsl", mVertexShaderLevel[SHADER_WINDLIGHT] ) ); index_channels.push_back(-1); shaders.push_back( make_pair( "windlight/gammaF.glsl", mVertexShaderLevel[SHADER_WINDLIGHT]) ); |