GLX winsys: fix feature handling for INTEL_swap_event

The declaration of INTEL_swap_event was treating winsys features as
if they were a bitfield, but they aren't. The end result was that
instead of reporting two features when INTEL_swap_event is present,
we report none.

https://bugzilla.gnome.org/show_bug.cgi?id=719741

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Owen W. Taylor 2013-12-02 22:08:57 -05:00 committed by Robert Bragg
parent 3abbcabdf6
commit ee5dc42612
2 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,6 @@ COGL_WINSYS_FEATURE_BEGIN (255, 255,
"INTEL\0",
"swap_event\0",
0,
COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT |
COGL_WINSYS_FEATURE_SYNC_AND_COMPLETE_EVENT)
COGL_WINSYS_FEATURE_END ()

View File

@ -850,6 +850,8 @@ update_winsys_features (CoglContext *context, CoglError **error)
if (_cogl_winsys_has_feature (COGL_WINSYS_FEATURE_SYNC_AND_COMPLETE_EVENT))
{
COGL_FLAGS_SET (context->winsys_features,
COGL_WINSYS_FEATURE_SWAP_BUFFERS_EVENT, TRUE);
/* TODO: remove this deprecated feature */
COGL_FLAGS_SET (context->features,
COGL_FEATURE_ID_SWAP_BUFFERS_EVENT,