[Piglit] [PATCH 2/3] egl_mesa_platform_surfaceless: Don't use eglGetPlatformDisplay directly

Daniel Díaz daniel.diaz at linaro.org
Wed May 17 23:00:16 UTC 2017


Signed-off-by: Daniel Díaz <daniel.diaz at linaro.org>
---
 .../spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
index 3bbd6aa..81a3919 100644
--- a/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
+++ b/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c
@@ -31,7 +31,7 @@ test_setup(EGLDisplay *dpy)
 
 	piglit_require_egl_extension(EGL_NO_DISPLAY, "EGL_MESA_platform_surfaceless");
 
-	*dpy = eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, NULL, NULL);
+	*dpy = piglit_egl_get_default_display(EGL_PLATFORM_SURFACELESS_MESA);
 	if (*dpy == EGL_NO_DISPLAY) {
 		printf("failed to get EGLDisplay\n");
 		piglit_report_result(PIGLIT_SKIP);
-- 
1.9.1



More information about the Piglit mailing list