aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llrender/llimagegl.cpp')
-rw-r--r--linden/indra/llrender/llimagegl.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/linden/indra/llrender/llimagegl.cpp b/linden/indra/llrender/llimagegl.cpp
index 8195eee..6a142a7 100644
--- a/linden/indra/llrender/llimagegl.cpp
+++ b/linden/indra/llrender/llimagegl.cpp
@@ -61,8 +61,6 @@ S32 LLImageGL::sCount = 0;
61BOOL LLImageGL::sGlobalUseAnisotropic = FALSE; 61BOOL LLImageGL::sGlobalUseAnisotropic = FALSE;
62F32 LLImageGL::sLastFrameTime = 0.f; 62F32 LLImageGL::sLastFrameTime = 0.f;
63 63
64S32 LLImageGL::sMaxTextureSize = 0 ;
65
66std::set<LLImageGL*> LLImageGL::sImageList; 64std::set<LLImageGL*> LLImageGL::sImageList;
67 65
68//************************************************************************************** 66//**************************************************************************************
@@ -378,16 +376,6 @@ void LLImageGL::setSize(S32 width, S32 height, S32 ncomponents)
378{ 376{
379 if (width != mWidth || height != mHeight || ncomponents != mComponents) 377 if (width != mWidth || height != mHeight || ncomponents != mComponents)
380 { 378 {
381 if(width > 1024 || height > 1024)
382 {
383 llwarns << "texture size is big: width: " << width << " height: " << height << llendl ;
384 if(!sMaxTextureSize)
385 {
386 glGetIntegerv(GL_MAX_TEXTURE_SIZE, (GLint*)&sMaxTextureSize) ;
387 }
388 llwarns << "max texture size is: " << sMaxTextureSize << llendl ;
389 }
390
391 // Check if dimensions are a power of two! 379 // Check if dimensions are a power of two!
392 if (!checkSize(width,height)) 380 if (!checkSize(width,height))
393 { 381 {