Bump event context structure version for page flipping
parent
53addc5d6e
commit
14f5958f7f
|
@ -693,7 +693,7 @@ extern void drmMsg(const char *format, ...);
|
|||
extern int drmSetMaster(int fd);
|
||||
extern int drmDropMaster(int fd);
|
||||
|
||||
#define DRM_EVENT_CONTEXT_VERSION 1
|
||||
#define DRM_EVENT_CONTEXT_VERSION 2
|
||||
|
||||
typedef struct _drmEventContext {
|
||||
|
||||
|
|
|
@ -701,7 +701,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx)
|
|||
U642VOID (vblank->user_data));
|
||||
break;
|
||||
case DRM_EVENT_FLIP_COMPLETE:
|
||||
if (evctx->version < 1 ||
|
||||
if (evctx->version < 2 ||
|
||||
evctx->page_flip_handler == NULL)
|
||||
break;
|
||||
vblank = (struct drm_event_vblank *) e;
|
||||
|
|
Loading…
Reference in New Issue