diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-23 23:06:36 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-23 23:06:36 -0500 |
commit | 253642ccff9b08da5e62449ff62b23e986dcb77d (patch) | |
tree | 1118351f770d4b07c720527bf02c74e1bfd26c29 /indra/newview/llvovolume.cpp | |
parent | 56f8396ff15b7d827f008edd6fe263bae26313f0 (diff) |
SH-1903 Don't use indexed texture rendering when GL version is < 3.1 (fixes bad performance on cards with old drivers)
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index c5e2c56e4b..e6da8eb89d 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4495,6 +4495,11 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std:: S32 texture_index_channels = gGLManager.mNumTextureImageUnits-1; //always reserve one for shiny for now just for simplicity + if (gGLManager.mGLVersion < 3.1f) + { + texture_index_channels = 1; + } + if (LLPipeline::sRenderDeferred && distance_sort) { texture_index_channels = gDeferredAlphaProgram.mFeatures.mIndexedTextureChannels; |