diff options
author | Dave Parks <davep@lindenlab.com> | 2010-10-21 14:24:49 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-10-21 14:24:49 -0500 |
commit | 2504824d59c32cf3372cf6d15808914ada2b051c (patch) | |
tree | 7cf1dd7cb5ba6b3c75666991c9c121bd79e45962 /indra/llrender/llimagegl.cpp | |
parent | 450c28e02b9e9e985f56e3fc013401de30c42253 (diff) |
Fix for crash when toggling anisotropic filtering.
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r-- | indra/llrender/llimagegl.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index bd81e804d6..4ae01a59ff 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -368,6 +368,18 @@ void LLImageGL::restoreGL() } } +//static +void LLImageGL::dirtyTexOptions() +{ + for (std::set<LLImageGL*>::iterator iter = sImageList.begin(); + iter != sImageList.end(); iter++) + { + LLImageGL* glimage = *iter; + glimage->mTexOptionsDirty = true; + stop_glerror(); + } + +} //---------------------------------------------------------------------------- //for server side use only. |