forked from enlightenment/efl
ecore_drm2: treat atomic flip without a req as an error
We should use the safety macro here instead of silently continuing so we can get something in the log if this happens.
This commit is contained in:
parent
9da0f52642
commit
e7a494ba87
|
@ -351,7 +351,7 @@ _fb_atomic_flip(Ecore_Drm2_Output *output)
|
|||
DRM_MODE_ATOMIC_NONBLOCK | DRM_MODE_PAGE_FLIP_EVENT |
|
||||
DRM_MODE_ATOMIC_ALLOW_MODESET;
|
||||
|
||||
if (!output->prep.atomic_req) return -1;
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(output->prep.atomic_req, -1);
|
||||
|
||||
res =
|
||||
sym_drmModeAtomicCommit(output->fd,
|
||||
|
|
Loading…
Reference in New Issue