aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfasttimerview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfasttimerview.cpp')
-rw-r--r--linden/indra/newview/llfasttimerview.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llfasttimerview.cpp b/linden/indra/newview/llfasttimerview.cpp
index f1ca99f..4449adf 100644
--- a/linden/indra/newview/llfasttimerview.cpp
+++ b/linden/indra/newview/llfasttimerview.cpp
@@ -116,6 +116,7 @@ static struct ft_display_info ft_display_table[] =
116 { LLFastTimer::FTM_VFILE_WAIT, " VFile Wait", &LLColor4::cyan6, 0 }, 116 { LLFastTimer::FTM_VFILE_WAIT, " VFile Wait", &LLColor4::cyan6, 0 },
117// { LLFastTimer::FTM_IDLE_CB, " Callbacks", &LLColor4::pink1, 0 }, 117// { LLFastTimer::FTM_IDLE_CB, " Callbacks", &LLColor4::pink1, 0 },
118 { LLFastTimer::FTM_RENDER, " Render", &green0, 1 }, 118 { LLFastTimer::FTM_RENDER, " Render", &green0, 1 },
119 { LLFastTimer::FTM_PICK, " Pick", &LLColor4::purple, 1 },
119 { LLFastTimer::FTM_HUD_EFFECTS, " HUD Effects", &LLColor4::orange1, 0 }, 120 { LLFastTimer::FTM_HUD_EFFECTS, " HUD Effects", &LLColor4::orange1, 0 },
120 { LLFastTimer::FTM_HUD_UPDATE, " HUD Update", &LLColor4::orange2, 0 }, 121 { LLFastTimer::FTM_HUD_UPDATE, " HUD Update", &LLColor4::orange2, 0 },
121 { LLFastTimer::FTM_UPDATE_SKY, " Sky Update", &LLColor4::cyan1, 0 }, 122 { LLFastTimer::FTM_UPDATE_SKY, " Sky Update", &LLColor4::cyan1, 0 },
@@ -463,7 +464,7 @@ void LLFastTimerView::draw()
463 464
464 // Draw the window background 465 // Draw the window background
465 { 466 {
466 LLGLSNoTexture gls_ui_no_texture; 467 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
467 gl_rect_2d(0, getRect().getHeight(), getRect().getWidth(), 0, LLColor4(0.f, 0.f, 0.f, 0.25f)); 468 gl_rect_2d(0, getRect().getHeight(), getRect().getWidth(), 0, LLColor4(0.f, 0.f, 0.f, 0.25f));
468 } 469 }
469 470
@@ -755,7 +756,7 @@ void LLFastTimerView::draw()
755 LLRect graph_rect; 756 LLRect graph_rect;
756 // Draw borders 757 // Draw borders
757 { 758 {
758 LLGLSNoTexture gls_ui_no_texture; 759 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
759 gGL.color4f(0.5f,0.5f,0.5f,0.5f); 760 gGL.color4f(0.5f,0.5f,0.5f,0.5f);
760 761
761 S32 by = y + 2; 762 S32 by = y + 2;
@@ -792,7 +793,7 @@ void LLFastTimerView::draw()
792 793
793 // Draw bars for each history entry 794 // Draw bars for each history entry
794 // Special: -1 = show running average 795 // Special: -1 = show running average
795 LLViewerImage::bindTexture(box_imagep->getImage()); 796 gGL.getTexUnit(0)->bind(box_imagep->getImage());
796 for (S32 j=-1; j<histmax && y > LINE_GRAPH_HEIGHT; j++) 797 for (S32 j=-1; j<histmax && y > LINE_GRAPH_HEIGHT; j++)
797 { 798 {
798 int sublevel_dx[FTV_DISPLAY_NUM+1]; 799 int sublevel_dx[FTV_DISPLAY_NUM+1];
@@ -936,7 +937,7 @@ void LLFastTimerView::draw()
936 937
937 //draw line graph history 938 //draw line graph history
938 { 939 {
939 LLGLSNoTexture no_texture; 940 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
940 LLLocalClipRect clip(graph_rect); 941 LLLocalClipRect clip(graph_rect);
941 942
942 //normalize based on last frame's maximum 943 //normalize based on last frame's maximum
@@ -980,7 +981,7 @@ void LLFastTimerView::draw()
980 981
981 gGL.color4f(0.5f,0.5f,0.5f,1); 982 gGL.color4f(0.5f,0.5f,0.5f,1);
982 983
983 gGL.begin(LLVertexBuffer::LINES); 984 gGL.begin(LLRender::LINES);
984 gGL.vertex2i((S32)bar, graph_rect.mBottom); 985 gGL.vertex2i((S32)bar, graph_rect.mBottom);
985 gGL.vertex2i((S32)bar, graph_rect.mTop); 986 gGL.vertex2i((S32)bar, graph_rect.mTop);
986 gGL.end(); 987 gGL.end();
@@ -1016,7 +1017,7 @@ void LLFastTimerView::draw()
1016 } 1017 }
1017 1018
1018 gGL.color4f(col[0], col[1], col[2], alpha); 1019 gGL.color4f(col[0], col[1], col[2], alpha);
1019 gGL.begin(LLVertexBuffer::LINE_STRIP); 1020 gGL.begin(LLRender::LINE_STRIP);
1020 for (U32 j = 0; j < LLFastTimer::FTM_HISTORY_NUM; j++) 1021 for (U32 j = 0; j < LLFastTimer::FTM_HISTORY_NUM; j++)
1021 { 1022 {
1022 U64 ticks = ticks_sum[j+1][idx]; 1023 U64 ticks = ticks_sum[j+1][idx];