diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpatchvertexarray.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/llpatchvertexarray.cpp b/linden/indra/newview/llpatchvertexarray.cpp index bfd4ff4..611ff97 100644 --- a/linden/indra/newview/llpatchvertexarray.cpp +++ b/linden/indra/newview/llpatchvertexarray.cpp | |||
@@ -126,8 +126,16 @@ void LLPatchVertexArray::create(U32 surface_width, U32 patch_width, F32 meters_p | |||
126 | mRenderStridep = new U32 [mPatchOrder + 1]; | 126 | mRenderStridep = new U32 [mPatchOrder + 1]; |
127 | } | 127 | } |
128 | 128 | ||
129 | if (NULL == mRenderLevelp || NULL == mRenderStridep) | ||
130 | { | ||
131 | // init() and some other things all want to deref these | ||
132 | // pointers, so this is serious. | ||
133 | llerrs << "mRenderLevelp or mRenderStridep was NULL; we'd crash soon." << llendl; | ||
134 | return; | ||
135 | } | ||
129 | 136 | ||
130 | // Now that we've allocated memory, we can initialize the arrays... | 137 | // Now that we've allocated memory, we can initialize |
138 | // the arrays... | ||
131 | init(); | 139 | init(); |
132 | } | 140 | } |
133 | 141 | ||