Crude port of megaregion mem corruption fix, by Rev

This commit is contained in:
Siana Gearz
2011-08-18 22:15:04 +02:00
parent 9d05a11ef0
commit 6b60fe40c6
4 changed files with 9 additions and 11 deletions

View File

@@ -176,6 +176,7 @@ void LLSurface::create(const S32 grids_per_edge,
mNumberOfPatches = mPatchesPerEdge * mPatchesPerEdge;
mMetersPerGrid = width / ((F32)(mGridsPerEdge - 1));
mMetersPerEdge = mMetersPerGrid * (mGridsPerEdge - 1);
sTextureSize = width;
mOriginGlobal.setVec(origin_global);