summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2010-10-22 13:06:44 -0400
committerNyx (Neal Orman) <nyx@lindenlab.com>2010-10-22 13:06:44 -0400
commit7863674626bcf16ad26f3bb8e77a6ca41998c36b (patch)
tree7de70d2f90508cad873ffefdf59f92cee01504d2 /indra/llrender
parente39d6169994936d2b5b4b260e8acf55070e58402 (diff)
parent6368f6f84958c8c3c2e48c9f47ec98c7e35308c7 (diff)
merging from internal branch
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llimagegl.cpp12
-rw-r--r--indra/llrender/llimagegl.h1
2 files changed, 13 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.
diff --git a/indra/llrender/llimagegl.h b/indra/llrender/llimagegl.h
index 87a835cdcc..6c980984c0 100644
--- a/indra/llrender/llimagegl.h
+++ b/indra/llrender/llimagegl.h
@@ -64,6 +64,7 @@ public:
// Save off / restore GL textures
static void destroyGL(BOOL save_state = TRUE);
static void restoreGL();
+ static void dirtyTexOptions();
// Sometimes called externally for textures not using LLImageGL (should go away...)
static S32 updateBoundTexMem(const S32 mem, const S32 ncomponents, S32 category) ;