forked from enlightenment/efl
ecore_drm2: Move function call after the NULL check
Was dereferencing ob before NULL checking it. What could possibly go wrong?
This commit is contained in:
parent
3b50c86985
commit
39da430878
|
@ -556,10 +556,11 @@ evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth)
|
|||
Render_Engine_Swap_Mode
|
||||
evas_outbuf_buffer_state_get(Outbuf *ob)
|
||||
{
|
||||
ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
|
||||
/* check for valid output buffer */
|
||||
if (!ob) return MODE_FULL;
|
||||
|
||||
ecore_drm2_fb_release(ob->priv.output, EINA_FALSE);
|
||||
|
||||
if (ob->swap_mode == MODE_AUTO && _extn_have_buffer_age)
|
||||
{
|
||||
Render_Engine_Swap_Mode swap_mode;
|
||||
|
|
Loading…
Reference in New Issue