summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
index f235a481bb..4446bc547f 100644
--- a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
+++ b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
@@ -22,7 +22,12 @@ _init_egl(Test_Data *td)
22 td->egl_display = 22 td->egl_display =
23 eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display)); 23 eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display));
24 24
25 eglInitialize(td->egl_display, NULL, NULL); 25 if (!eglInitialize(td->egl_display, NULL, NULL))
26 {
27 ERR("Failed to initialize egl");
28 eglTerminate(td->egl_display);
29 return EINA_FALSE;
30 }
26 31
27 if (!eglChooseConfig(td->egl_display, attributes, &td->egl_conf, 32 if (!eglChooseConfig(td->egl_display, attributes, &td->egl_conf,
28 1, &num_config)) 33 1, &num_config))