summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorskolb <none@none>2009-12-15 15:20:26 -0800
committerskolb <none@none>2009-12-15 15:20:26 -0800
commiteb6b69640ea70de0e3b848ec3a4af3eee098f19f (patch)
tree4cca458d120a9ede6174fa037e1a07294e9578a6 /indra
parent90d7c2ec131117e0517a3a6c97927c7ae7f19a83 (diff)
parent1f8ad2651d82b81fc85d91f3d48663430427537e (diff)
Merge
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltexturefetch.cpp2
-rw-r--r--indra/newview/pipeline.cpp8
2 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index 85259fdc1e..9f69ed3964 100644
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -887,6 +887,8 @@ bool LLTextureFetchWorker::doWork(S32 param)
}
else
{
+ // mFormattedImage gauranteed to not be NULL since cur_size != 0
+ mLoadedDiscard = mFormattedImage->getDiscardLevel();
mState = DECODE_IMAGE;
return false; // use what we have
}
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 282eddf380..73b5222ee3 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -7268,13 +7268,7 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
updateCull(camera, ref_result, 1);
stateSort(camera, ref_result);
}
- else
- {
- gGL.setColorMask(true, true);
- mWaterRef.clear();
- gGL.setColorMask(true, false);
- }
-
+
ref_mask = mRenderTypeMask;
mRenderTypeMask = mask;
}