From 6e900c27462ddd7ba3ff079c9ea3289f0fa67493 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 11 Jul 2013 23:05:02 -0700 Subject: [PATCH] Fixed cast of the OpenGL context type --- src/video/x11/SDL_x11opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index c8ef1f156..947000f90 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -532,7 +532,7 @@ X11_GL_CreateContext(_THIS, SDL_Window * window) GLXContext context = NULL, share_context; if (_this->gl_config.share_with_current_context) { - share_context = SDL_GL_GetCurrentContext(); + share_context = (GLXContext)SDL_GL_GetCurrentContext(); } else { share_context = NULL; }