diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llsurfacepatch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llsurfacepatch.cpp b/linden/indra/newview/llsurfacepatch.cpp index 5b03c98..42aea9e 100644 --- a/linden/indra/newview/llsurfacepatch.cpp +++ b/linden/indra/newview/llsurfacepatch.cpp | |||
@@ -206,10 +206,11 @@ LLVector2 LLSurfacePatch::getTexCoords(const U32 x, const U32 y) const | |||
206 | void LLSurfacePatch::eval(const U32 x, const U32 y, const U32 stride, LLVector3 *vertex, LLVector3 *normal, | 206 | void LLSurfacePatch::eval(const U32 x, const U32 y, const U32 stride, LLVector3 *vertex, LLVector3 *normal, |
207 | LLVector2 *tex0, LLVector2 *tex1) | 207 | LLVector2 *tex0, LLVector2 *tex1) |
208 | { | 208 | { |
209 | if (!mSurfacep || !mSurfacep->getRegion()) | 209 | if (!mSurfacep || !mSurfacep->getRegion() || !mSurfacep->getGridsPerEdge()) |
210 | { | 210 | { |
211 | return; // failsafe | 211 | return; // failsafe |
212 | } | 212 | } |
213 | llassert_always(vertex && normal && tex0 && tex1); | ||
213 | 214 | ||
214 | U32 surface_stride = mSurfacep->getGridsPerEdge(); | 215 | U32 surface_stride = mSurfacep->getGridsPerEdge(); |
215 | U32 point_offset = x + y*surface_stride; | 216 | U32 point_offset = x + y*surface_stride; |