aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-11-20 12:19:08 -0500
committerChris Michael <cp.michael@samsung.com>2018-01-31 11:18:03 -0500
commitd4d6359ec6592ac3c97d6b90270a22463b1622b0 (patch)
tree10190754056e04e04e94f1807cbf61217d93c994
parentecore-evas-drm: Fix gl_drm segfault on startup with multiple outputs (diff)
downloadefl-d4d6359ec6592ac3c97d6b90270a22463b1622b0.tar.gz
ecore-evas-drm: Don't add a null tick to the tick list
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index d7d0171087..29c27ac53a 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -94,6 +94,7 @@ _drm_gl_canvas_setup(Efl_Canvas_Output *eout, Ecore_Evas_Engine_Drm_Data *edata,
einfo->info.rotation = rotation;
einfo->info.output = output;
+ einfo->info.vsync = EINA_TRUE;
num = getenv("EVAS_DRM_VSYNC");
if ((num) && (!atoi(num)))
einfo->info.vsync = EINA_FALSE;
@@ -1209,10 +1210,9 @@ _ecore_evas_new_internal(const char *device, int x, int y, int w, int h, Eina_Bo
{
etick->output = output;
etick->offset = 0.0;
+ edata->ticks = eina_list_append(edata->ticks, etick);
}
- edata->ticks = eina_list_append(edata->ticks, etick);
-
ecore_drm2_output_user_data_set(output, ee);
if (ecore_drm2_output_primary_get(output))