summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorgraham linden <graham@lindenlab.com>2013-04-23 18:40:12 -0700
committergraham linden <graham@lindenlab.com>2013-04-23 18:40:12 -0700
commitb2cd1144713e4e1bbf77edf6547f633be55ab8ea (patch)
tree2bd9caa3b26fd988c618d6ff286d5876b00f791e /indra/newview/pipeline.cpp
parent82b87e3acb1441ae56fcd08f53f8a83aee45a62f (diff)
parent95672cabb98fb311010cf3ff5571b3422b4dec71 (diff)
Merged lindenlab/viewer-development-materials into default
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index a5e19e4c06..9010abce01 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -917,6 +917,11 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
{
screenFormat = GL_RGBA12;
}
+
+ if (gGLManager.mGLVersion < 4.f && gGLManager.mIsNVIDIA)
+ {
+ screenFormat = GL_RGBA16F_ARB;
+ }
if (!mScreen.allocate(resX, resY, screenFormat, FALSE, FALSE, LLTexUnit::TT_RECT_TEXTURE, FALSE, samples)) return false;
if (samples > 0)
@@ -10040,7 +10045,6 @@ void LLPipeline::generateSunShadow(LLCamera& camera)
{
static LLCullResult result[4];
- //LLGLEnable enable(GL_DEPTH_CLAMP_NV);
renderShadow(view[j], proj[j], shadow_cam, result[j], TRUE, TRUE, target_width);
}