If glGetError is slow on a platform, define GL_GET_ERROR_IS_SLOW. Define this on OS X only for now. It's fast on Windows.

This commit is contained in:
Steve Checkoway
2008-01-03 02:45:00 +00:00
parent ce8f578f0c
commit 74a2028160
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ static void FixLittleEndian()
ASSERT_M( error == GL_NO_ERROR, GLToString(error) ); \
}
#ifdef DEBUG
#if defined(DEBUG) || !defined(GL_GET_ERROR_IS_SLOW)
#define DebugFlushGLErrors() FlushGLErrors()
#define DebugAssertNoGLError() AssertNoGLError()
#else
@@ -34,6 +34,8 @@ typedef unsigned long long UInt64;
#define HAVE_MACHINE_ENDIAN_H
#define CRASH_HANDLER
#define GL_GET_ERROR_IS_SLOW
#if defined(__ppc__)
# define CPU_PPC
# define ENDIAN_BIG