summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2013-07-17 08:03:09 -0700
committerGraham Linden <graham@lindenlab.com>2013-07-17 08:03:09 -0700
commit9aeb3b48d77ce9e22445b4bca23d36f651bb9395 (patch)
tree361f26474eaa092f0fe528c1bb4600d871cb25f2 /indra/newview/pipeline.cpp
parent1587999b0329c76d108fcd1efe2d3fb768043e9e (diff)
NORSPEC-291 fix materials underwater, disable attempt at materials in reflect/distort RTs
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-xindra/newview/pipeline.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index fc79f1c31f..d88cb30887 100755
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -122,9 +122,9 @@
//#define DEBUG_INDICES
#endif
-// Expensive
+// Expensive and currently broken
//
-#define MATERIALS_IN_REFLECTIONS 1
+#define MATERIALS_IN_REFLECTIONS 0
bool gShiftFrame = false;
@@ -1236,7 +1236,11 @@ void LLPipeline::createGLBuffers()
updateRenderDeferred();
- bool materials_in_water = gSavedSettings.getS32("RenderWaterMaterials");
+ bool materials_in_water = false;
+
+#if MATERIALS_IN_REFLECTIONS
+ materials_in_water = gSavedSettings.getS32("RenderWaterMaterials");
+#endif
if (LLPipeline::sWaterReflections)
{ //water reflection texture
@@ -9685,7 +9689,11 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
water_clip = 1;
}
- bool materials_in_water = gSavedSettings.getS32("RenderWaterMaterials");
+ bool materials_in_water = false;
+
+#if MATERIALS_IN_REFLECTIONS
+ materials_in_water = gSavedSettings.getS32("RenderWaterMaterials");
+#endif
if (!LLViewerCamera::getInstance()->cameraUnderWater())
{ //generate planar reflection map