Fixed bug 1671 - add cast to fix build with strict GCC settings
authorSam Lantinga <slouken@libsdl.org>
Mon, 31 Dec 2012 14:14:01 -0800
changeset 6791 c19c5232439d
parent 6790 475f0a544157
child 6792 a15821a3471f
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
--- a/src/video/x11/SDL_x11opengles.c	Mon Dec 31 14:08:43 2012 -0800
+++ b/src/video/x11/SDL_x11opengles.c	Mon Dec 31 14:14:01 2012 -0800
@@ -321,7 +321,7 @@
 
     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);