don't use glSwapAPPLE, it fails on some OSX versions

thanks Steven for the report
This commit is contained in:
Erwin Coumans
2015-05-06 18:42:47 -07:00
parent 5b34cda617
commit 5c84d6f6de

View File

@@ -5,7 +5,6 @@
#include "OpenGLInclude.h" #include "OpenGLInclude.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stddef.h> #include <stddef.h>
@@ -1036,7 +1035,12 @@ void MacOpenGLWindow::startRendering()
void MacOpenGLWindow::endRendering() void MacOpenGLWindow::endRendering()
{ {
[m_internalData->m_myview MakeCurrent]; [m_internalData->m_myview MakeCurrent];
glSwapAPPLE(); //#ifndef NO_OPENGL3
// glSwapAPPLE();
//#else
[m_internalData->m_myview->m_context flushBuffer];
// #endif
} }
bool MacOpenGLWindow::requestedExit() const bool MacOpenGLWindow::requestedExit() const