summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorprep linden <prep@lindenlab.com>2010-12-13 16:35:43 -0500
committerprep linden <prep@lindenlab.com>2010-12-13 16:35:43 -0500
commitdd06d42c09e5e1f4b28559059ec8393e53f767a7 (patch)
tree7b730b1f3c390f165235258177fbd3d560c5d767 /indra/newview/pipeline.cpp
parent52bdaebdbd8b80c208f7436b911b87172b6fd94f (diff)
Commented out some unused variables that gcc complains about
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 64c24750b7..1f1c8d46f5 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -6165,16 +6165,16 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield)
F32 fov = LLViewerCamera::getInstance()->getView();
const F32 default_fov = gSavedSettings.getF32("CameraFieldOfView") * F_PI/180.f;
- const F32 default_aspect_ratio = gSavedSettings.getF32("CameraAspectRatio");
+ //const F32 default_aspect_ratio = gSavedSettings.getF32("CameraAspectRatio");
- F32 aspect_ratio = (F32) mScreen.getWidth()/(F32)mScreen.getHeight();
+ //F32 aspect_ratio = (F32) mScreen.getWidth()/(F32)mScreen.getHeight();
F32 dv = 2.f*default_focal_length * tanf(default_fov/2.f);
- F32 dh = 2.f*default_focal_length * tanf(default_fov*default_aspect_ratio/2.f);
+ //F32 dh = 2.f*default_focal_length * tanf(default_fov*default_aspect_ratio/2.f);
F32 focal_length = dv/(2*tanf(fov/2.f));
- F32 tan_pixel_angle = tanf(LLDrawable::sCurPixelAngle);
+ //F32 tan_pixel_angle = tanf(LLDrawable::sCurPixelAngle);
// from wikipedia -- c = |s2-s1|/s2 * f^2/(N(S1-f))
// where N = fnumber