Skip to content
Snippets Groups Projects
Commit 5433dbee authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

fix for EXT-1125: Mini-map terrain appears green on login with Low graphics settings.

parent e19c983a
No related branches found
No related tags found
No related merge requests found
...@@ -265,7 +265,7 @@ void LLSurface::createWaterTexture() ...@@ -265,7 +265,7 @@ void LLSurface::createWaterTexture()
if (!mWaterTexturep) if (!mWaterTexturep)
{ {
// Create the water texture // Create the water texture
/*LLPointer<LLImageRaw> raw = new LLImageRaw(sTextureSize/2, sTextureSize/2, 4); LLPointer<LLImageRaw> raw = new LLImageRaw(sTextureSize/2, sTextureSize/2, 4);
U8 *default_texture = raw->getData(); U8 *default_texture = raw->getData();
for (S32 i = 0; i < sTextureSize/2; i++) for (S32 i = 0; i < sTextureSize/2; i++)
{ {
...@@ -276,11 +276,11 @@ void LLSurface::createWaterTexture() ...@@ -276,11 +276,11 @@ void LLSurface::createWaterTexture()
*(default_texture + (i*sTextureSize/2 + j)*4 + 2) = MAX_WATER_COLOR.mV[2]; *(default_texture + (i*sTextureSize/2 + j)*4 + 2) = MAX_WATER_COLOR.mV[2];
*(default_texture + (i*sTextureSize/2 + j)*4 + 3) = MAX_WATER_COLOR.mV[3]; *(default_texture + (i*sTextureSize/2 + j)*4 + 3) = MAX_WATER_COLOR.mV[3];
} }
}*/ }
mWaterTexturep = LLViewerTextureManager::getLocalTexture(raw.get(), FALSE);
mWaterTexturep = LLViewerTextureManager::getLocalTexture(sTextureSize/2, sTextureSize/2, 4, FALSE);
mWaterTexturep->dontDiscard(); mWaterTexturep->dontDiscard();
gGL.getTexUnit(0)->bind(mWaterTexturep);
mWaterTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); mWaterTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment