summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorsimon <none@none>2013-05-13 16:34:52 -0700
committersimon <none@none>2013-05-13 16:34:52 -0700
commitb864cecd6c938b18cf05f7695f33f4da3b608a47 (patch)
treee003bec0f2a9bfc38464ad8364a92a98ed3d68b3 /indra/llrender
parent180dd12ed637c1f63a5013d25fbac002e1d94c93 (diff)
De-bork the viewer merge, causing black in-world images. Reviewed by Kelly
Diffstat (limited to 'indra/llrender')
-rwxr-xr-xindra/llrender/llimagegl.cpp9
-rwxr-xr-xindra/llrender/llshadermgr.cpp2
2 files changed, 3 insertions, 8 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,
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 825f80a6dc..4893b1d043 100755
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -1120,8 +1120,6 @@ void LLShaderMgr::initAttribsAndUniforms()
mReservedUniforms.push_back("matrixPalette");
-
- mReservedUniforms.reserve(12);
mReservedUniforms.push_back("screenTex");
mReservedUniforms.push_back("screenDepth");
mReservedUniforms.push_back("refTex");