diff options
author | Dave Parks <davep@lindenlab.com> | 2011-10-19 13:21:17 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-10-19 13:21:17 -0500 |
commit | fe51889b2914a9f117d5f19d91072716b5913579 (patch) | |
tree | 35317e27314daec19ab20bd9d40702210a390472 /indra/newview/llvovolume.cpp | |
parent | 506a91beb83bc1fb9a5ee77ee83544b6293e534a (diff) |
SH-2276 Force RenderMaxTextureIndex to be <= 16 regardless of settings
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rwxr-xr-x | indra/newview/llvovolume.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 2fadc795fd..b75a0a799a 100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4666,6 +4666,8 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std:: texture_index_channels = llmin(texture_index_channels, (S32) gSavedSettings.getU32("RenderMaxTextureIndex")); + //NEVER use more than 16 texture index channels (workaround for prevalent driver bug) + texture_index_channels = llmin(texture_index_channels, 16); while (face_iter != faces.end()) { |