Mac OS X does not need glFlush() called, swapping the buffers does it implicitly.

This commit is contained in:
Steve Checkoway
2008-07-29 09:26:41 +00:00
parent f8711d2f74
commit 6654fa2e1d
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -27,6 +27,10 @@ using namespace RageDisplay_OGL_Helpers;
#pragma comment(lib, "glu32.lib")
#endif
#ifdef NO_GL_FLUSH
#define glFlush()
#endif
//
// Globals
//
@@ -271,7 +271,6 @@ void RenderTarget_MacOSX::StartRenderingTo()
void RenderTarget_MacOSX::FinishRenderingTo()
{
DEBUG_ASSERT( m_OldContext );
glFlush();
glBindTexture( GL_TEXTURE_2D, m_iTexHandle );
while( glGetError() != GL_NO_ERROR )
@@ -23,6 +23,8 @@ extern "C" int SM_main( int argc, char *argv[] );
#define CRASH_HANDLER
#define GL_GET_ERROR_IS_SLOW
// CGFlushDrawable() performs a glFlush() and the docs say not to call glFlush()
#define NO_GL_FLUSH
#if defined(__ppc__)
# define CPU_PPC