summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rw-r--r--indra/llrender/llimagegl.cpp8
1 files changed, 1 insertions, 7 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;