diff options
Diffstat (limited to 'linden/indra/llrender/llimagegl.cpp')
-rw-r--r-- | linden/indra/llrender/llimagegl.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/linden/indra/llrender/llimagegl.cpp b/linden/indra/llrender/llimagegl.cpp index 454a5bb..a402814 100644 --- a/linden/indra/llrender/llimagegl.cpp +++ b/linden/indra/llrender/llimagegl.cpp | |||
@@ -61,8 +61,6 @@ S32 LLImageGL::sCount = 0; | |||
61 | BOOL LLImageGL::sGlobalUseAnisotropic = FALSE; | 61 | BOOL LLImageGL::sGlobalUseAnisotropic = FALSE; |
62 | F32 LLImageGL::sLastFrameTime = 0.f; | 62 | F32 LLImageGL::sLastFrameTime = 0.f; |
63 | 63 | ||
64 | BOOL LLImageGL::sRefCheck = TRUE ; | ||
65 | |||
66 | std::set<LLImageGL*> LLImageGL::sImageList; | 64 | std::set<LLImageGL*> LLImageGL::sImageList; |
67 | 65 | ||
68 | //---------------------------------------------------------------------------- | 66 | //---------------------------------------------------------------------------- |
@@ -279,9 +277,7 @@ LLImageGL::LLImageGL(const LLImageRaw* imageraw, BOOL usemipmaps) | |||
279 | sImageList.insert(this); | 277 | sImageList.insert(this); |
280 | sCount++; | 278 | sCount++; |
281 | 279 | ||
282 | sRefCheck = FALSE ; | ||
283 | createGLTexture(0, imageraw); | 280 | createGLTexture(0, imageraw); |
284 | sRefCheck = TRUE ; | ||
285 | } | 281 | } |
286 | 282 | ||
287 | LLImageGL::~LLImageGL() | 283 | LLImageGL::~LLImageGL() |
@@ -426,9 +422,7 @@ void LLImageGL::dump() | |||
426 | //---------------------------------------------------------------------------- | 422 | //---------------------------------------------------------------------------- |
427 | 423 | ||
428 | BOOL LLImageGL::bindTextureInternal(const S32 stage) const | 424 | BOOL LLImageGL::bindTextureInternal(const S32 stage) const |
429 | { | 425 | { |
430 | llassert_always(!sRefCheck || (getNumRefs() > 0 && getNumRefs() < 100000)) ; | ||
431 | |||
432 | if (gGLManager.mIsDisabled) | 426 | if (gGLManager.mIsDisabled) |
433 | { | 427 | { |
434 | llwarns << "Trying to bind a texture while GL is disabled!" << llendl; | 428 | llwarns << "Trying to bind a texture while GL is disabled!" << llendl; |