diff options
Diffstat (limited to 'linden/indra/newview/llworldmap.cpp')
-rw-r--r-- | linden/indra/newview/llworldmap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/llworldmap.cpp b/linden/indra/newview/llworldmap.cpp index 1048fe9..e83f6a9 100644 --- a/linden/indra/newview/llworldmap.cpp +++ b/linden/indra/newview/llworldmap.cpp | |||
@@ -498,7 +498,8 @@ void LLWorldMap::processMapLayerReply(LLMessageSystem* msg, void**) | |||
498 | new_layer.LayerDefined = TRUE; | 498 | new_layer.LayerDefined = TRUE; |
499 | msg->getUUIDFast(_PREHASH_LayerData, _PREHASH_ImageID, new_layer.LayerImageID, block); | 499 | msg->getUUIDFast(_PREHASH_LayerData, _PREHASH_ImageID, new_layer.LayerImageID, block); |
500 | new_layer.LayerImage = gImageList.getImage(new_layer.LayerImageID, MIPMAP_TRUE, FALSE); | 500 | new_layer.LayerImage = gImageList.getImage(new_layer.LayerImageID, MIPMAP_TRUE, FALSE); |
501 | new_layer.LayerImage->bindTexture(0); | 501 | |
502 | gGL.getTexUnit(0)->bind(new_layer.LayerImage.get()); | ||
502 | new_layer.LayerImage->setClamp(TRUE, TRUE); | 503 | new_layer.LayerImage->setClamp(TRUE, TRUE); |
503 | 504 | ||
504 | U32 left, right, top, bottom; | 505 | U32 left, right, top, bottom; |
@@ -610,7 +611,7 @@ void LLWorldMap::processMapBlockReply(LLMessageSystem* msg, void**) | |||
610 | siminfo->mWaterHeight = (F32) water_height; | 611 | siminfo->mWaterHeight = (F32) water_height; |
611 | siminfo->mMapImageID[agent_flags] = image_id; | 612 | siminfo->mMapImageID[agent_flags] = image_id; |
612 | siminfo->mCurrentImage = gImageList.getImage(siminfo->mMapImageID[LLWorldMap::getInstance()->mCurrentMap], MIPMAP_TRUE, FALSE); | 613 | siminfo->mCurrentImage = gImageList.getImage(siminfo->mMapImageID[LLWorldMap::getInstance()->mCurrentMap], MIPMAP_TRUE, FALSE); |
613 | siminfo->mCurrentImage->bindTexture(0); | 614 | gGL.getTexUnit(0)->bind(siminfo->mCurrentImage.get()); |
614 | siminfo->mCurrentImage->setClamp(TRUE, TRUE); | 615 | siminfo->mCurrentImage->setClamp(TRUE, TRUE); |
615 | 616 | ||
616 | if (siminfo->mMapImageID[2].notNull()) | 617 | if (siminfo->mMapImageID[2].notNull()) |