diff options
| -rw-r--r-- | indra/llmath/llvolume.cpp | 14 | ||||
| -rw-r--r-- | indra/newview/llappearancemgr.cpp | 1 | 
2 files changed, 14 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 7a54d83b3f..b0ac3c9436 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -5311,19 +5311,31 @@ void LLVolumeFace::cacheOptimize()  	S32 num_verts = mNumVertices;  	S32 size = ((num_verts*sizeof(LLVector2)) + 0xF) & ~0xF;  	LLVector4a* pos = (LLVector4a*) ll_aligned_malloc<64>(sizeof(LLVector4a)*2*num_verts+size); +	if (pos == NULL) +	{ +		LL_ERRS("LLVOLUME") << "Allocation of positions vector[" << sizeof(LLVector4a) * 2 * num_verts + size  << "] failed. " << LL_ENDL; +	}  	LLVector4a* norm = pos + num_verts;  	LLVector2* tc = (LLVector2*) (norm + num_verts);  	LLVector4a* wght = NULL;  	if (mWeights)  	{ -		wght = (LLVector4a*) ll_aligned_malloc_16(sizeof(LLVector4a)*num_verts); +		wght = (LLVector4a*)ll_aligned_malloc_16(sizeof(LLVector4a)*num_verts); +		if (wght == NULL) +		{ +			LL_ERRS("LLVOLUME") << "Allocation of weights[" << sizeof(LLVector4a) * num_verts << "] failed" << LL_ENDL; +		}  	}  	LLVector4a* binorm = NULL;  	if (mTangents)  	{  		binorm = (LLVector4a*) ll_aligned_malloc_16(sizeof(LLVector4a)*num_verts); +		if (binorm == NULL) +		{ +			LL_ERRS("LLVOLUME") << "Allocation of binormals[" << sizeof(LLVector4a)*num_verts << "] failed" << LL_ENDL; +		}  	}  	//allocate mapping of old indices to new indices diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index e9b2a43f38..0fb811a386 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -3218,6 +3218,7 @@ void appearance_mgr_update_dirty_state()  void update_base_outfit_after_ordering()  {  	LLAppearanceMgr& app_mgr = LLAppearanceMgr::instance(); +	app_mgr.setOutfitImage(LLUUID());  	LLInventoryModel::cat_array_t sub_cat_array;  	LLInventoryModel::item_array_t outfit_item_array;  	gInventory.collectDescendents(app_mgr.getBaseOutfitUUID(),  | 
