From f30c888a75e056ddbd1cd00f5f7608f6d690d744 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 31 Dec 2012 14:14:01 -0800 Subject: [PATCH] Fixed bug 1671 - add cast to fix build with strict GCC settings Pavol Rusnak 2012-12-21 16:08:39 PST I suggest the following patch to fix build with strict GCC settings --- src/video/x11/SDL_x11opengles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengles.c b/src/video/x11/SDL_x11opengles.c index 6cced5e3f..d2a9a2f01 100644 --- a/src/video/x11/SDL_x11opengles.c +++ b/src/video/x11/SDL_x11opengles.c @@ -321,7 +321,7 @@ X11_GLES_CreateContext(_THIS, SDL_Window * window) SDL_WindowData *data = (SDL_WindowData *) window->driverdata; Display *display = data->videodata->display; - SDL_GLContext context = 1; + SDL_GLContext context = (SDL_GLContext)1; XSync(display, False);