[clutter] Silence another compiler warning
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Silence another compiler warning
- Date: Tue, 12 Apr 2011 20:02:50 +0000 (UTC)
commit a5fd1612f5984b1a2cb3f3fd535b1b8777180397
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue Apr 12 21:02:14 2011 +0100
Silence another compiler warning
clutter/cogl/cogl/winsys/cogl-winsys-glx.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/clutter/cogl/cogl/winsys/cogl-winsys-glx.c b/clutter/cogl/cogl/winsys/cogl-winsys-glx.c
index b4f494d..0e01968 100644
--- a/clutter/cogl/cogl/winsys/cogl-winsys-glx.c
+++ b/clutter/cogl/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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]