mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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:
parent
3abbcabdf6
commit
ee5dc42612
@ -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 ()
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user