From 215e7ed2510e191664b611a578ffb987cf4fdab3 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 28 Jan 2013 03:25:42 +0200 Subject: [PATCH] only take wminfo from appropriate sdl driver --- plat_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat_sdl.c b/plat_sdl.c index 2508d1c..9b41299 100644 --- a/plat_sdl.c +++ b/plat_sdl.c @@ -222,8 +222,10 @@ int plat_sdl_init(void) SDL_VERSION(&wminfo.version); SDL_GetWMInfo(&wminfo); +#ifdef SDL_VIDEO_DRIVER_X11 display = wminfo.info.x11.display; window = (void *)wminfo.info.x11.window; +#endif ret = gl_init(display, window, &gl_quirks); if (ret == 0) { -- 2.39.5