aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorArmin Weatherwax2010-09-19 21:51:40 +0200
committerArmin Weatherwax2010-09-23 20:43:03 +0200
commit341f3416d4108f625f1591ed7afe78324e560480 (patch)
treee38863847e2e5296c370060e117e4c5b9fe4bf7f /linden/indra/newview
parentfix minimap surface not rendered (diff)
downloadmeta-impy-341f3416d4108f625f1591ed7afe78324e560480.zip
meta-impy-341f3416d4108f625f1591ed7afe78324e560480.tar.gz
meta-impy-341f3416d4108f625f1591ed7afe78324e560480.tar.bz2
meta-impy-341f3416d4108f625f1591ed7afe78324e560480.tar.xz
fix: cached trees + grass white on opensim
issues remaining: windlight water is "flat"
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llvograss.cpp5
-rw-r--r--linden/indra/newview/llvograss.h2
-rw-r--r--linden/indra/newview/llvotree.cpp2
3 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llvograss.cpp b/linden/indra/newview/llvograss.cpp
index c56d676..e516aeb 100644
--- a/linden/indra/newview/llvograss.cpp
+++ b/linden/indra/newview/llvograss.cpp
@@ -108,7 +108,9 @@ void LLVOGrass::updateSpecies()
108 SpeciesMap::const_iterator it = sSpeciesTable.begin(); 108 SpeciesMap::const_iterator it = sSpeciesTable.begin();
109 mSpecies = (*it).first; 109 mSpecies = (*it).first;
110 } 110 }
111 setTEImage(0, gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName)); 111
112 mGrassImage = gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName, TRUE, TRUE);
113 setTEImage(0, mGrassImage);
112} 114}
113 115
114 116
@@ -162,7 +164,6 @@ void LLVOGrass::initClass()
162 164
163 GrassSpeciesData* newGrass = new GrassSpeciesData(); 165 GrassSpeciesData* newGrass = new GrassSpeciesData();
164 166
165
166 std::string textureName; 167 std::string textureName;
167 168
168 static LLStdStringHandle texture_name_string = LLXmlTree::addAttributeString("texture_name"); 169 static LLStdStringHandle texture_name_string = LLXmlTree::addAttributeString("texture_name");
diff --git a/linden/indra/newview/llvograss.h b/linden/indra/newview/llvograss.h
index c55c59b..c05908b 100644
--- a/linden/indra/newview/llvograss.h
+++ b/linden/indra/newview/llvograss.h
@@ -128,7 +128,7 @@ private:
128 void updateSpecies(); 128 void updateSpecies();
129 F32 mLastHeight; // For cheap update hack 129 F32 mLastHeight; // For cheap update hack
130 S32 mNumBlades; 130 S32 mNumBlades;
131 131 LLPointer<LLViewerImage> mGrassImage;
132 static SpeciesMap sSpeciesTable; 132 static SpeciesMap sSpeciesTable;
133}; 133};
134#endif // LL_VO_GRASS_ 134#endif // LL_VO_GRASS_
diff --git a/linden/indra/newview/llvotree.cpp b/linden/indra/newview/llvotree.cpp
index 89d6491..53cfbdb 100644
--- a/linden/indra/newview/llvotree.cpp
+++ b/linden/indra/newview/llvotree.cpp
@@ -324,7 +324,7 @@ U32 LLVOTree::processUpdateMessage(LLMessageSystem *mesgsys,
324 // 324 //
325 // Load Species-Specific data 325 // Load Species-Specific data
326 // 326 //
327 mTreeImagep = gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName); 327 mTreeImagep = gImageList.getImageFromFile(sSpeciesTable[mSpecies]->mTextureName, TRUE, TRUE);
328 if (mTreeImagep) 328 if (mTreeImagep)
329 { 329 {
330 gGL.getTexUnit(0)->bind(mTreeImagep.get()); 330 gGL.getTexUnit(0)->bind(mTreeImagep.get());