diff options
author | Jacek Antonelli | 2010-02-09 21:11:42 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-02-16 18:50:15 -0600 |
commit | e6247fbe78c4d3dacb74f3b2359aba2b6538133b (patch) | |
tree | 10c42d670a2c635b4339f7f68809c221756774f8 /linden/indra/newview/llvlcomposition.cpp | |
parent | Ported some cURL and HTTP-related changes from Snowglobe. (diff) | |
download | meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.zip meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.gz meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.bz2 meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.xz |
Ported many texture engine changes from Snowglobe.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvlcomposition.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llvlcomposition.cpp b/linden/indra/newview/llvlcomposition.cpp index a269225..9c383c7 100644 --- a/linden/indra/newview/llvlcomposition.cpp +++ b/linden/indra/newview/llvlcomposition.cpp | |||
@@ -234,7 +234,7 @@ BOOL LLVLComposition::generateComposition() | |||
234 | { | 234 | { |
235 | if (mDetailTextures[i]->getDiscardLevel() < 0) | 235 | if (mDetailTextures[i]->getDiscardLevel() < 0) |
236 | { | 236 | { |
237 | mDetailTextures[i]->setBoostLevel(LLViewerImage::BOOST_TERRAIN); // in case we are at low detail | 237 | mDetailTextures[i]->setBoostLevel(LLViewerImageBoostLevel::BOOST_TERRAIN); // in case we are at low detail |
238 | mDetailTextures[i]->addTextureStats(BASE_SIZE*BASE_SIZE); | 238 | mDetailTextures[i]->addTextureStats(BASE_SIZE*BASE_SIZE); |
239 | return FALSE; | 239 | return FALSE; |
240 | } | 240 | } |
@@ -251,7 +251,7 @@ BOOL LLVLComposition::generateComposition() | |||
251 | ddiscard++; | 251 | ddiscard++; |
252 | min_dim /= 2; | 252 | min_dim /= 2; |
253 | } | 253 | } |
254 | mDetailTextures[i]->setBoostLevel(LLViewerImage::BOOST_TERRAIN); // in case we are at low detail | 254 | mDetailTextures[i]->setBoostLevel(LLViewerImageBoostLevel::BOOST_TERRAIN); // in case we are at low detail |
255 | mDetailTextures[i]->setMinDiscardLevel(ddiscard); | 255 | mDetailTextures[i]->setMinDiscardLevel(ddiscard); |
256 | return FALSE; | 256 | return FALSE; |
257 | } | 257 | } |
@@ -292,10 +292,10 @@ BOOL LLVLComposition::generateTexture(const F32 x, const F32 y, | |||
292 | ddiscard++; | 292 | ddiscard++; |
293 | min_dim /= 2; | 293 | min_dim /= 2; |
294 | } | 294 | } |
295 | if (!mDetailTextures[i]->readBackRaw(ddiscard, mRawImages[i], false)) | 295 | mRawImages[i] = mDetailTextures[i]->getCachedRawImage() ; |
296 | if (!mRawImages[i]) | ||
296 | { | 297 | { |
297 | llwarns << "Unable to read raw data for terrain detail texture: " << mDetailTextures[i]->getID() << llendl; | 298 | llwarns << "no cached raw data for terrain detail texture: " << mDetailTextures[i]->getID() << llendl; |
298 | mRawImages[i] = NULL; | ||
299 | return FALSE; | 299 | return FALSE; |
300 | } | 300 | } |
301 | if (mDetailTextures[i]->getWidth(ddiscard) != BASE_SIZE || | 301 | if (mDetailTextures[i]->getWidth(ddiscard) != BASE_SIZE || |
@@ -460,7 +460,7 @@ BOOL LLVLComposition::generateTexture(const F32 x, const F32 y, | |||
460 | for (S32 i = 0; i < 4; i++) | 460 | for (S32 i = 0; i < 4; i++) |
461 | { | 461 | { |
462 | // Un-boost detatil textures (will get re-boosted if rendering in high detail) | 462 | // Un-boost detatil textures (will get re-boosted if rendering in high detail) |
463 | mDetailTextures[i]->setBoostLevel(LLViewerImage::BOOST_NONE); | 463 | mDetailTextures[i]->setBoostLevel(LLViewerImageBoostLevel::BOOST_NONE); |
464 | mDetailTextures[i]->setMinDiscardLevel(MAX_DISCARD_LEVEL + 1); | 464 | mDetailTextures[i]->setMinDiscardLevel(MAX_DISCARD_LEVEL + 1); |
465 | } | 465 | } |
466 | 466 | ||