21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_COCOA && SDL_VIDEO_OPENGL_EGL
33 Cocoa_GLES_LoadLibrary(
_THIS,
const char *
path) {
37 #if SDL_VIDEO_OPENGL_CGL
38 Cocoa_GLES_UnloadLibrary(
_this);
50 return SDL_SetError(
"SDL not configured with OpenGL/CGL support");
70 Cocoa_GLES_UnloadLibrary(
_this);
81 if (Cocoa_GL_LoadLibrary(
_this,
NULL) != 0) {
97 Cocoa_GLES_UnloadLibrary(
_this);
100 SDL_EGL_SwapWindow_impl(Cocoa)
101 SDL_EGL_MakeCurrent_impl(Cocoa)
114 SDL_EGL_UnloadLibrary(
_this);
120 NSView*
v = windowdata->
nswindow.contentView;
124 return SDL_SetError(
"Could not create GLES window surface");
127 return Cocoa_GLES_MakeCurrent(
_this, current_win, current_ctx);