summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2013-05-13 20:17:12 -0400
committerMonty Brandenberg <monty@lindenlab.com>2013-05-13 20:17:12 -0400
commite743a56b14448916895a22a2beb368e75f58650d (patch)
tree2639fa61782436989ba90c1cc6e64e8a90d007dd /indra/llrender/llimagegl.cpp
parent73f474d886d2430db3d5c8f7729f769b389730a4 (diff)
parentb864cecd6c938b18cf05f7695f33f4da3b608a47 (diff)
Merge. Pull a fix from viewer-cat that went in after last merge.
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
-rwxr-xr-xindra/llrender/llimagegl.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 5aef2c972e..0a0429846a 100755
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -715,12 +715,9 @@ void LLImageGL::setImage(const U8* data_in, BOOL data_hasmips)
mMipLevels = wpo2(llmax(w, h));
- if (!gGLManager.mHasFramebufferObject)
- {
- //use legacy mipmap generation mode
- glTexParameteri(mTarget, GL_GENERATE_MIPMAP, GL_TRUE);
- }
-
+ //use legacy mipmap generation mode (note: making this condional can cause rendering issues)
+ glTexParameteri(mTarget, GL_GENERATE_MIPMAP, GL_TRUE);
+
LLImageGL::setManualImage(mTarget, 0, mFormatInternal,
w, h,
mFormatPrimary, mFormatType,