aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llmaniprotate.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llmaniprotate.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llmaniprotate.cpp b/linden/indra/newview/llmaniprotate.cpp
index 11b5e8c..ade07b4 100644
--- a/linden/indra/newview/llmaniprotate.cpp
+++ b/linden/indra/newview/llmaniprotate.cpp
@@ -115,7 +115,7 @@ void LLManipRotate::handleSelect()
115void LLManipRotate::render() 115void LLManipRotate::render()
116{ 116{
117 LLGLSUIDefault gls_ui; 117 LLGLSUIDefault gls_ui;
118 LLGLSNoTexture gls_no_texture; 118 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
119 LLGLDepthTest gls_depth(GL_TRUE); 119 LLGLDepthTest gls_depth(GL_TRUE);
120 LLGLEnable gl_blend(GL_BLEND); 120 LLGLEnable gl_blend(GL_BLEND);
121 LLGLEnable gls_alpha_test(GL_ALPHA_TEST); 121 LLGLEnable gls_alpha_test(GL_ALPHA_TEST);
@@ -838,7 +838,7 @@ void LLManipRotate::renderSnapGuides()
838 LLVector3 outer_point; 838 LLVector3 outer_point;
839 LLVector3 text_point; 839 LLVector3 text_point;
840 LLQuaternion rot(deg * DEG_TO_RAD, constraint_axis); 840 LLQuaternion rot(deg * DEG_TO_RAD, constraint_axis);
841 gGL.begin(LLVertexBuffer::LINES); 841 gGL.begin(LLRender::LINES);
842 { 842 {
843 inner_point = (projected_snap_axis * mRadiusMeters * SNAP_GUIDE_INNER_RADIUS * rot) + center; 843 inner_point = (projected_snap_axis * mRadiusMeters * SNAP_GUIDE_INNER_RADIUS * rot) + center;
844 F32 tick_length = 0.f; 844 F32 tick_length = 0.f;
@@ -1017,7 +1017,7 @@ void LLManipRotate::renderSnapGuides()
1017 object_axis = object_axis * SNAP_GUIDE_INNER_RADIUS * mRadiusMeters + center; 1017 object_axis = object_axis * SNAP_GUIDE_INNER_RADIUS * mRadiusMeters + center;
1018 LLVector3 line_start = center; 1018 LLVector3 line_start = center;
1019 1019
1020 gGL.begin(LLVertexBuffer::LINES); 1020 gGL.begin(LLRender::LINES);
1021 { 1021 {
1022 gGL.vertex3fv(line_start.mV); 1022 gGL.vertex3fv(line_start.mV);
1023 gGL.vertex3fv(object_axis.mV); 1023 gGL.vertex3fv(object_axis.mV);
@@ -1025,7 +1025,7 @@ void LLManipRotate::renderSnapGuides()
1025 gGL.end(); 1025 gGL.end();
1026 1026
1027 // draw snap guide arrow 1027 // draw snap guide arrow
1028 gGL.begin(LLVertexBuffer::TRIANGLES); 1028 gGL.begin(LLRender::TRIANGLES);
1029 { 1029 {
1030 LLVector3 arrow_dir; 1030 LLVector3 arrow_dir;
1031 LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis(); 1031 LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis();
@@ -1045,7 +1045,7 @@ void LLManipRotate::renderSnapGuides()
1045 1045
1046 { 1046 {
1047 LLGLDepthTest gls_depth(GL_TRUE); 1047 LLGLDepthTest gls_depth(GL_TRUE);
1048 gGL.begin(LLVertexBuffer::LINES); 1048 gGL.begin(LLRender::LINES);
1049 { 1049 {
1050 gGL.vertex3fv(line_start.mV); 1050 gGL.vertex3fv(line_start.mV);
1051 gGL.vertex3fv(object_axis.mV); 1051 gGL.vertex3fv(object_axis.mV);
@@ -1053,7 +1053,7 @@ void LLManipRotate::renderSnapGuides()
1053 gGL.end(); 1053 gGL.end();
1054 1054
1055 // draw snap guide arrow 1055 // draw snap guide arrow
1056 gGL.begin(LLVertexBuffer::TRIANGLES); 1056 gGL.begin(LLRender::TRIANGLES);
1057 { 1057 {
1058 LLVector3 arrow_dir; 1058 LLVector3 arrow_dir;
1059 LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis(); 1059 LLVector3 arrow_span = (object_axis - line_start) % getConstraintAxis();