From 5e530ca9bbe076abf1bc3111447d1d5825456a51 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 12 Apr 2011 21:02:14 +0100 Subject: [PATCH] Silence another compiler warning --- cogl/winsys/cogl-winsys-glx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogl/winsys/cogl-winsys-glx.c b/cogl/winsys/cogl-winsys-glx.c index b4f494df5..0e01968df 100644 --- a/cogl/winsys/cogl-winsys-glx.c +++ b/cogl/winsys/cogl-winsys-glx.c @@ -223,7 +223,9 @@ static CoglXlibFilterReturn glx_event_filter_cb (XEvent *xevent, void *data) { CoglContext *context = data; - CoglRendererGLX *glx_renderer = context->display->renderer->winsys; +#ifdef GLX_INTEL_swap_event + CoglRendererGLX *glx_renderer; +#endif if (xevent->type == ConfigureNotify) { @@ -244,6 +246,8 @@ glx_event_filter_cb (XEvent *xevent, void *data) } #ifdef GLX_INTEL_swap_event + glx_renderer = context->display->renderer->winsys; + if (xevent->type == (glx_renderer->glx_event_base + GLX_BufferSwapComplete)) { GLXBufferSwapComplete *swap_event = (GLXBufferSwapComplete *) xevent;