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
This commit is contained in:
Sam Lantinga
2012-12-31 14:14:01 -08:00
parent 0f0ebd3ffe
commit f30c888a75

View File

@@ -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);