[OpenSim] Optimize the minimap region tile matrix implementation

This commit is contained in:
Lirusaito
2015-01-10 16:29:23 -05:00
parent bf3947dcc5
commit 03e9db98e6
3 changed files with 5 additions and 6 deletions

View File

@@ -360,7 +360,7 @@ void LLNetMap::draw()
const F32 local_right(local_left + mScale);
const F32 local_bottom(bottom + y*mScale);
const F32 local_top(local_bottom + mScale);
LLViewerTexture* pRegionImage = tiles[x][y];
LLViewerTexture* pRegionImage = tiles[x*scaled_width+y];
if (pRegionImage && pRegionImage->hasGLTexture())
{
gGL.getTexUnit(0)->bind(pRegionImage);