summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-01-05 14:09:19 -0500
committerprep <prep@lindenlab.com>2011-01-05 14:09:19 -0500
commitc20f9342b9632c4e5480faa5d4e6be26c75e1157 (patch)
treeaf0dfe2156e70a48ec1ce3a0483a52fb5e9bcbbe /indra/newview
parent875d36b083582a2c5afdc8f515f203f331269312 (diff)
patch for gl_any_samples_passed missing define on mac
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llspatialpartition.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp
index cb72f35eee..1b5800b8a5 100644
--- a/indra/newview/llspatialpartition.cpp
+++ b/indra/newview/llspatialpartition.cpp
@@ -1619,7 +1619,7 @@ void LLSpatialGroup::doOcclusion(LLCamera* camera)
{
glEnable(GL_DEPTH_CLAMP);
}
-
+#if !LL_DARWIN
U32 mode = gGLManager.mHasOcclusionQuery2 ? GL_ANY_SAMPLES_PASSED : GL_SAMPLES_PASSED_ARB;
glBeginQueryARB(mode, mOcclusionQuery[LLViewerCamera::sCurCameraID]);
@@ -1637,7 +1637,7 @@ void LLSpatialGroup::doOcclusion(LLCamera* camera)
}
glEndQueryARB(mode);
-
+#endif
if (use_depth_clamp)
{
glDisable(GL_DEPTH_CLAMP);