summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-07-11 11:41:34 -0500
committerDave Parks <davep@lindenlab.com>2011-07-11 11:41:34 -0500
commitb5149a63f9a3d4eeaa3c8807f9c65d04bbd113bf (patch)
tree03064613889d61e944f85673244cb14dc8bac13b
parent268f3dbdea27d2549e69cd81334c1c8b0a057da4 (diff)
SH-2038 Compatibility fix for mac build (GL_ARB_sync symbols not defined on OSX)
-rw-r--r--indra/llrender/llvertexbuffer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp
index 2a297bcc45..53ddca124b 100644
--- a/indra/llrender/llvertexbuffer.cpp
+++ b/indra/llrender/llvertexbuffer.cpp
@@ -79,23 +79,28 @@ public:
~LLGLSyncFence()
{
+#ifdef GL_ARB_sync
if (mSync)
{
glDeleteSync(mSync);
}
+#endif
}
void placeFence()
{
+#ifdef GL_ARB_sync
if (mSync)
{
glDeleteSync(mSync);
}
mSync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
+#endif
}
void wait()
{
+#ifdef GL_ARB_sync
if (mSync)
{
while (glClientWaitSync(mSync, 0, FENCE_WAIT_TIME_NANOSECONDS) == GL_TIMEOUT_EXPIRED)
@@ -103,6 +108,7 @@ public:
static S32 waits = 0;
waits++;
}
+#endif
}
}