diff options
Diffstat (limited to 'linden/indra/newview/llworldmap.cpp')
-rw-r--r-- | linden/indra/newview/llworldmap.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llworldmap.cpp b/linden/indra/newview/llworldmap.cpp index 1048fe9..7311989 100644 --- a/linden/indra/newview/llworldmap.cpp +++ b/linden/indra/newview/llworldmap.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2003-2008, Linden Research, Inc. | 7 | * Copyright (c) 2003-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -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()) |