ecore_drm2: Handle atomic state in _release_buffer

Further merging of atomic and non-atomic paths
This commit is contained in:
Derek Foreman 2017-04-28 12:23:28 -05:00
parent b902ef7c69
commit ba4d41ff63
1 changed files with 5 additions and 0 deletions

View File

@ -214,6 +214,11 @@ _release_buffer(Ecore_Drm2_Output *output, Ecore_Drm2_Output_State *s)
s->fb->busy = EINA_FALSE;
if (output->release_cb) output->release_cb(output->release_data, s->fb);
s->fb = NULL;
#ifdef HAVE_ATOMIC_DRM
if (s->atomic_req)
sym_drmModeAtomicFree(s->atomic_req);
s->atomic_req = NULL;
#endif
}
EAPI Eina_Bool