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:
Derek Foreman 2017-04-28 10:38:30 -05:00
parent 9da0f52642
commit e7a494ba87
1 changed files with 1 additions and 1 deletions

View File

@ -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,