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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user