mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Added code to enable multi-threaded OpenGL on Mac OS X, pending Ryan's PBO/VBO
changes.
This commit is contained in:
parent
45891d1d50
commit
377c3990ba
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user