diff options
author | Dave Parks <davep@lindenlab.com> | 2011-07-11 11:41:34 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-07-11 11:41:34 -0500 |
commit | b5149a63f9a3d4eeaa3c8807f9c65d04bbd113bf (patch) | |
tree | 03064613889d61e944f85673244cb14dc8bac13b /indra/llrender | |
parent | 268f3dbdea27d2549e69cd81334c1c8b0a057da4 (diff) |
SH-2038 Compatibility fix for mac build (GL_ARB_sync symbols not defined on OSX)
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 6 |
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 } } |