1. simon_linden
  2. viewer-rabbit

Commits

davep  committed dff2be3

SH-2038 Compatibility fix for mac build (GL_ARB_sync symbols not defined on OSX)

  • Participants
  • Parent commits 2ddfa29
  • Branches default

Comments (0)

Files changed (1)

File indra/llrender/llvertexbuffer.cpp

View file
 
 	~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)
 				static S32 waits = 0;
 				waits++;
 			}
+#endif
 		}
 	}