Commit 92c5ea48 authored by Sam Lantinga's avatar Sam Lantinga

Added code to enable multi-threaded OpenGL on Mac OS X, pending Ryan's PBO/VBO

changes.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402608
parent e8458df2
......@@ -30,6 +30,10 @@
#include "SDL_rect_c.h"
#include "SDL_yuv_sw_c.h"
#ifdef __MACOSX__
#include <OpenGL/OpenGL.h>
#endif
/* OpenGL renderer implementation */
/* Details on optimizing the texture path on Mac OS X:
......@@ -292,6 +296,13 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags)
return NULL;
}
#ifdef __MACOSX__
/* Enable multi-threaded rendering */
/* Disabled until Ryan finishes his VBO/PBO code...
CGLEnable(CGLGetCurrentContext(), kCGLCEMPEngine);
*/
#endif
if (flags & SDL_RENDERER_PRESENTVSYNC) {
SDL_GL_SetSwapInterval(1);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment