From: Emil Velikov <emil.veli...@collabora.com>

The latter is a legacy and somewhat of a hack.

Since we explicitly know that this requires the X11, simply use the
helper which will use the correct EGL_PLATFORM API.

Cc: Ian Romanick <ian.d.roman...@intel.com>
Signed-off-by: Emil Velikov <emil.veli...@collabora.com>
---
 tests/egl/egl-util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/egl/egl-util.c b/tests/egl/egl-util.c
index 8af1a4cbd..92a799185 100644
--- a/tests/egl/egl-util.c
+++ b/tests/egl/egl-util.c
@@ -233,9 +233,9 @@ egl_util_run(const struct egl_test *test, int argc, char 
*argv[])
        }
 
 
-       state.egl_dpy = eglGetDisplay(state.dpy);
+       state.egl_dpy = piglit_egl_get_display(EGL_PLATFORM_X11_EXT, state.dpy);
        if (state.egl_dpy == EGL_NO_DISPLAY) {
-               fprintf(stderr, "eglGetDisplay() failed\n");
+               fprintf(stderr, "piglit_egl_get_display() failed\n");
                result = PIGLIT_FAIL;
                goto fail;
        }
-- 
2.15.0

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to