cogl-winsys-glx: Fix the comparison in find_onscreen_for_xid

The comparison for finding onscreen framebuffers in
find_onscreen_for_xid had a small thinko so that it would ignore
framebuffers when the negation of the type is onscreen. This ends up
doing the right thing anyway because the onscreen type has the value 0
and the offscreen type has the value 1 but presumably it would fail if
we ever added any other framebuffer types.
This commit is contained in:
Neil Roberts 2011-04-20 17:50:38 +01:00
parent 49233af465
commit 66f22cfd60

View File

@ -188,7 +188,7 @@ find_onscreen_for_xid (CoglContext *context, guint32 xid)
CoglFramebuffer *framebuffer = l->data;
CoglOnscreenXlib *xlib_onscreen;
if (!framebuffer->type == COGL_FRAMEBUFFER_TYPE_ONSCREEN)
if (framebuffer->type != COGL_FRAMEBUFFER_TYPE_ONSCREEN)
continue;
/* Does the GLXEvent have the GLXDrawable or the X Window? */