summaryrefslogtreecommitdiff
path: root/indra/llui/llview.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-06-04 00:11:08 -0500
committerDave Parks <davep@lindenlab.com>2010-06-04 00:11:08 -0500
commit9a96da9c96bea01ae59e35cd196406904153dbbd (patch)
treee55ed06a3892ce06d6348d5f21d125d5811e6973 /indra/llui/llview.cpp
parent7db6a5a64d8eacb63b45dc7cc48bdd681f3e19af (diff)
Better branch prediction in UI rendering.
Diffstat (limited to 'indra/llui/llview.cpp')
-rw-r--r--indra/llui/llview.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp
index 459041f67d..262ebf7c21 100644
--- a/indra/llui/llview.cpp
+++ b/indra/llui/llview.cpp
@@ -1325,11 +1325,7 @@ void LLView::drawChildren()
child_list_reverse_iter_t child = child_iter++;
LLView *viewp = *child;
- if (!viewp->getVisible() || !viewp->getRect().isValid())
- {
- continue;
- }
-
+ if (viewp->getVisible() && viewp->getRect().isValid())
{
// Only draw views that are within the root view
localRectToScreen(viewp->getRect(),&screenRect);