aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpatchvertexarray.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llpatchvertexarray.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpatchvertexarray.cpp10
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