diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-11-18 15:03:37 -0600 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-11-18 15:03:37 -0600 |
| commit | 50112c163a1d7fcea4bd3be815d6eddd7d44364e (patch) | |
| tree | a2d3179da0a80451ce243e31ffc7c3239392445f /indra/newview/llspatialpartition.cpp | |
| parent | e4b3198504158724c429152b18bc52bda5b74bfd (diff) | |
SH-2699 Potential fix for occlusion culling being overly aggressive on 9800 GT
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
| -rw-r--r-- | indra/newview/llspatialpartition.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 3fecc33802..3e16ccf3da 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -1642,19 +1642,6 @@ void LLSpatialGroup::doOcclusion(LLCamera* camera) { if (!isOcclusionState(QUERY_PENDING) || isOcclusionState(DISCARD_QUERY)) { - bool check = true; - - if (isOcclusionState(QUERY_PENDING)) - { - GLuint available = 0; - glGetQueryObjectuivARB(mOcclusionQuery[LLViewerCamera::sCurCameraID], GL_QUERY_RESULT_AVAILABLE_ARB, &available); - if (available == GL_FALSE) - { - check = false; - } - } - - if (check) { //no query pending, or previous query to be discarded LLFastTimer t(FTM_RENDER_OCCLUSION); |
