aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-03-17 15:06:39 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-03-17 15:06:39 -0500
commit39da430878ed0d8b4521694087f7f4ed6e1a2e4a (patch)
tree3f512ca7642c70c5dbcb26e8f00b4ae48d4311aa
parentgl_drm: Properly disable EGL_EXT_buffer_age when we don't have it (diff)
downloadefl-39da430878ed0d8b4521694087f7f4ed6e1a2e4a.tar.gz
ecore_drm2: Move function call after the NULL check
Was dereferencing ob before NULL checking it. What could possibly go wrong?
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index cfc40a04c6..f246366d7f 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -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;