|
@@ -716,7 +716,8 @@ SDL_GLContext X11_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window *window)
|
|
|
XWindowAttributes xattr;
|
|
|
XVisualInfo v, *vinfo;
|
|
|
int n;
|
|
|
- GLXContext context = NULL, share_context;
|
|
|
+ SDL_GLContext context = NULL;
|
|
|
+ GLXContext share_context;
|
|
|
const int transparent = (window->flags & SDL_WINDOW_TRANSPARENT) ? SDL_TRUE : SDL_FALSE;
|
|
|
|
|
|
if (_this->gl_config.share_with_current_context) {
|
|
@@ -741,7 +742,7 @@ SDL_GLContext X11_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window *window)
|
|
|
_this->gl_config.flags == 0 && !transparent) {
|
|
|
/* Create legacy context */
|
|
|
context =
|
|
|
- _this->gl_data->glXCreateContext(display, vinfo, share_context, True);
|
|
|
+ (SDL_GLContext)_this->gl_data->glXCreateContext(display, vinfo, share_context, True);
|
|
|
} else {
|
|
|
/* max 14 attributes plus terminator */
|
|
|
int attribs[15] = {
|
|
@@ -813,7 +814,7 @@ SDL_GLContext X11_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window *window)
|
|
|
}
|
|
|
|
|
|
if (framebuffer_config) {
|
|
|
- context = _this->gl_data->glXCreateContextAttribsARB(display,
|
|
|
+ context = (SDL_GLContext)_this->gl_data->glXCreateContextAttribsARB(display,
|
|
|
framebuffer_config[0],
|
|
|
share_context, True, attribs);
|
|
|
X11_XFree(framebuffer_config);
|