aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvlcomposition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvlcomposition.cpp')
-rw-r--r--linden/indra/newview/llvlcomposition.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/newview/llvlcomposition.cpp b/linden/indra/newview/llvlcomposition.cpp
index af0fe96..370bf24 100644
--- a/linden/indra/newview/llvlcomposition.cpp
+++ b/linden/indra/newview/llvlcomposition.cpp
@@ -126,6 +126,13 @@ BOOL LLVLComposition::generateHeights(const F32 x, const F32 y,
126 } 126 }
127 127
128 llassert(mSurfacep); 128 llassert(mSurfacep);
129
130 if (!mSurfacep || !mSurfacep->getRegion())
131 {
132 // We don't always have the region yet here....
133 return FALSE;
134 }
135
129 S32 x_begin, y_begin, x_end, y_end; 136 S32 x_begin, y_begin, x_end, y_end;
130 137
131 x_begin = llround( x * mScaleInv ); 138 x_begin = llround( x * mScaleInv );