summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2020-06-10 08:26:29 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-06-10 08:26:29 -0400
commite48ac73bdcd43ffff1177739d2aa2c015da9a3cb (patch)
tree0037aae14c79f19753ab06086ee161331badcf44
parente38c1f8be38121520fb90761b4d768ee74bfc403 (diff)
ecore_wl2_tests: Fix formatting
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h19
1 files changed, 12 insertions, 7 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 03da269c38..27fa4a615e 100644
--- a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
+++ b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
@@ -11,23 +11,28 @@ _init_egl(Test_Data *td)
11 eglBindAPI(EGL_OPENGL_API); 11 eglBindAPI(EGL_OPENGL_API);
12 EGLint num_config; 12 EGLint num_config;
13 13
14 EGLint attributes[] = { 14 EGLint attributes[] =
15 {
15 EGL_RED_SIZE, 8, 16 EGL_RED_SIZE, 8,
16 EGL_GREEN_SIZE, 8, 17 EGL_GREEN_SIZE, 8,
17 EGL_BLUE_SIZE, 8, 18 EGL_BLUE_SIZE, 8,
18 EGL_NONE 19 EGL_NONE
19 }; 20 };
20 21
21 td->egl_display = eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display)); 22 td->egl_display =
23 eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display));
22 eglInitialize(td->egl_display, NULL, NULL); 24 eglInitialize(td->egl_display, NULL, NULL);
23 eglChooseConfig(td->egl_display, attributes, &td->egl_conf, 1, &num_config); 25 eglChooseConfig(td->egl_display, attributes, &td->egl_conf, 1, &num_config);
24 td->egl_context = eglCreateContext(td->egl_display, td->egl_conf, EGL_NO_CONTEXT, NULL); 26 td->egl_context =
27 eglCreateContext(td->egl_display, td->egl_conf, EGL_NO_CONTEXT, NULL);
25 28
26 td->egl_window = wl_egl_window_create(td->surface, td->width, td->height); 29 td->egl_window = wl_egl_window_create(td->surface, td->width, td->height);
27 td->egl_surface = eglCreateWindowSurface(td->egl_display, 30 td->egl_surface =
28 td->egl_conf, td->egl_window, NULL); 31 eglCreateWindowSurface(td->egl_display,
32 td->egl_conf, td->egl_window, NULL);
29 33
30 eglMakeCurrent(td->egl_display, td->egl_surface, td->egl_surface, td->egl_context); 34 eglMakeCurrent(td->egl_display, td->egl_surface,
35 td->egl_surface, td->egl_context);
31} 36}
32 37
33static void 38static void