summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llimagegl.cpp8
-rw-r--r--indra/llrender/llimagegl.h3
2 files changed, 1 insertions, 10 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index f020730d4a..1c9b4d9693 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -61,8 +61,6 @@ S32 LLImageGL::sCount = 0;
BOOL LLImageGL::sGlobalUseAnisotropic = FALSE;
F32 LLImageGL::sLastFrameTime = 0.f;
-BOOL LLImageGL::sRefCheck = TRUE ;
-
std::set<LLImageGL*> LLImageGL::sImageList;
//----------------------------------------------------------------------------
@@ -279,9 +277,7 @@ LLImageGL::LLImageGL(const LLImageRaw* imageraw, BOOL usemipmaps)
sImageList.insert(this);
sCount++;
- sRefCheck = FALSE ;
createGLTexture(0, imageraw);
- sRefCheck = TRUE ;
}
LLImageGL::~LLImageGL()
@@ -426,9 +422,7 @@ void LLImageGL::dump()
//----------------------------------------------------------------------------
BOOL LLImageGL::bindTextureInternal(const S32 stage) const
-{
- llassert_always(!sRefCheck || (getNumRefs() > 0 && getNumRefs() < 100000)) ;
-
+{
if (gGLManager.mIsDisabled)
{
llwarns << "Trying to bind a texture while GL is disabled!" << llendl;
diff --git a/indra/llrender/llimagegl.h b/indra/llrender/llimagegl.h
index c5fe9b7299..8aeecb3627 100644
--- a/indra/llrender/llimagegl.h
+++ b/indra/llrender/llimagegl.h
@@ -207,9 +207,6 @@ public:
#else
BOOL getMissed() const { return FALSE; };
#endif
-
-private://paranoia error check
- static BOOL sRefCheck ;
};
#endif // LL_LLIMAGEGL_H