mirror of
https://github.com/brl/mutter.git
synced 2024-12-03 13:20:41 -05:00
Silence another compiler warning
This commit is contained in:
parent
6277c3d5a3
commit
a5fd1612f5
@ -223,7 +223,9 @@ static CoglXlibFilterReturn
|
|||||||
glx_event_filter_cb (XEvent *xevent, void *data)
|
glx_event_filter_cb (XEvent *xevent, void *data)
|
||||||
{
|
{
|
||||||
CoglContext *context = data;
|
CoglContext *context = data;
|
||||||
CoglRendererGLX *glx_renderer = context->display->renderer->winsys;
|
#ifdef GLX_INTEL_swap_event
|
||||||
|
CoglRendererGLX *glx_renderer;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (xevent->type == ConfigureNotify)
|
if (xevent->type == ConfigureNotify)
|
||||||
{
|
{
|
||||||
@ -244,6 +246,8 @@ glx_event_filter_cb (XEvent *xevent, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GLX_INTEL_swap_event
|
#ifdef GLX_INTEL_swap_event
|
||||||
|
glx_renderer = context->display->renderer->winsys;
|
||||||
|
|
||||||
if (xevent->type == (glx_renderer->glx_event_base + GLX_BufferSwapComplete))
|
if (xevent->type == (glx_renderer->glx_event_base + GLX_BufferSwapComplete))
|
||||||
{
|
{
|
||||||
GLXBufferSwapComplete *swap_event = (GLXBufferSwapComplete *) xevent;
|
GLXBufferSwapComplete *swap_event = (GLXBufferSwapComplete *) xevent;
|
||||||
|
Loading…
Reference in New Issue
Block a user