diff options
author | Jacek Antonelli | 2009-01-28 20:04:52 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-28 20:05:02 -0600 |
commit | 0ef11cf31364456ec247b0fc7ad8f6d1de408400 (patch) | |
tree | 50754b286468147a70271253a2a74215c80e1354 /linden/indra/llrender/llimagegl.cpp | |
parent | Second Life viewer sources 1.22.5-RC (diff) | |
download | meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.zip meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.gz meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.bz2 meta-impy-0ef11cf31364456ec247b0fc7ad8f6d1de408400.tar.xz |
Second Life viewer sources 1.22.6-RC
Diffstat (limited to 'linden/indra/llrender/llimagegl.cpp')
-rw-r--r-- | linden/indra/llrender/llimagegl.cpp | 12 |
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; | |||
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 | S32 LLImageGL::sMaxTextureSize = 0 ; | ||
65 | |||
66 | std::set<LLImageGL*> LLImageGL::sImageList; | 64 | std::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 | { |