summaryrefslogtreecommitdiff
path: root/indra/newview/llcylinder.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-10-18 16:14:56 -0500
committerDave Parks <davep@lindenlab.com>2011-10-18 16:14:56 -0500
commita9aca58eaf847bb38f93a268da3aa024b60b38ba (patch)
treec13c80ebfb8772df870448dba707956af6f1c67c /indra/newview/llcylinder.cpp
parentb32e6e094d1a6d2843b938448eee22ad1671052c (diff)
SH-2508 Fix for edit/rotate ring not showing up on Radeon X1950 pro
Diffstat (limited to 'indra/newview/llcylinder.cpp')
-rw-r--r--indra/newview/llcylinder.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llcylinder.cpp b/indra/newview/llcylinder.cpp
index 2adc071d7a..f353851a25 100644
--- a/indra/newview/llcylinder.cpp
+++ b/indra/newview/llcylinder.cpp
@@ -53,22 +53,22 @@ void LLCone::render(S32 sides)
F32 a = (F32) i/sides * F_PI*2.f;
F32 x = cosf(a)*0.5f;
F32 y = sinf(a)*0.5f;
- gGL.vertex3f(x,y,0.f);
+ gGL.vertex3f(x,y,-.5f);
}
- gGL.vertex3f(cosf(0.f)*0.5f, sinf(0.f)*0.5f, 0.f);
+ gGL.vertex3f(cosf(0.f)*0.5f, sinf(0.f)*0.5f, -0.5f);
gGL.end();
gGL.begin(LLRender::TRIANGLE_FAN);
- gGL.vertex3f(0.f, 0.f, 1.f);
+ gGL.vertex3f(0.f, 0.f, 0.5f);
for (U32 i = 0; i < sides; i++)
{
F32 a = (F32) i/sides * F_PI*2.f;
F32 x = cosf(a)*0.5f;
F32 y = sinf(a)*0.5f;
- gGL.vertex3f(x,y,0.f);
+ gGL.vertex3f(x,y,-0.5f);
}
- gGL.vertex3f(cosf(0.f)*0.5f, sinf(0.f)*0.5f, 0.f);
+ gGL.vertex3f(cosf(0.f)*0.5f, sinf(0.f)*0.5f, -0.5f);
gGL.end();
}