diff options
author | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:44 -0500 |
commit | acfdcf2b1deeb04698174c78e8cb22b093445bb1 (patch) | |
tree | 811293650bcf81d01ea7c54d7c2cf263110aa329 /linden/indra/newview/lldrawable.cpp | |
parent | Second Life viewer sources 1.20.2 (diff) | |
download | meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.zip meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.gz meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.bz2 meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.xz |
Second Life viewer sources 1.20.3
Diffstat (limited to 'linden/indra/newview/lldrawable.cpp')
-rw-r--r-- | linden/indra/newview/lldrawable.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawable.cpp b/linden/indra/newview/lldrawable.cpp index 3a2841d..d2b2a99 100644 --- a/linden/indra/newview/lldrawable.cpp +++ b/linden/indra/newview/lldrawable.cpp | |||
@@ -1188,10 +1188,11 @@ void LLSpatialBridge::setVisible(LLCamera& camera_in, std::vector<LLDrawable*>* | |||
1188 | LLVector3 center = (mExtents[0] + mExtents[1]) * 0.5f; | 1188 | LLVector3 center = (mExtents[0] + mExtents[1]) * 0.5f; |
1189 | LLVector3 size = (mExtents[1]-mExtents[0]) * 0.5f; | 1189 | LLVector3 size = (mExtents[1]-mExtents[0]) * 0.5f; |
1190 | 1190 | ||
1191 | if (camera_in.AABBInFrustumNoFarClip(center, size) && | 1191 | if (LLPipeline::sImpostorRender || |
1192 | AABBSphereIntersect(mExtents[0], mExtents[1], camera_in.getOrigin(), camera_in.mFrustumCornerDist)) | 1192 | (camera_in.AABBInFrustumNoFarClip(center, size) && |
1193 | AABBSphereIntersect(mExtents[0], mExtents[1], camera_in.getOrigin(), camera_in.mFrustumCornerDist))) | ||
1193 | { | 1194 | { |
1194 | if (LLPipeline::calcPixelArea(center, size, camera_in) < FORCE_INVISIBLE_AREA) | 1195 | if (!LLPipeline::sImpostorRender && LLPipeline::calcPixelArea(center, size, camera_in) < FORCE_INVISIBLE_AREA) |
1195 | { | 1196 | { |
1196 | return; | 1197 | return; |
1197 | } | 1198 | } |