[Piglit] [PATCH 3/9] egl_ext_device_query: drop unused major/minor from eglInitialize
Emil Velikov
emil.l.velikov at gmail.com
Fri Aug 3 12:46:31 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
The arguments are optional. Since we don't care about the version, use
NULL instead.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c b/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
index 0a12b2a06..45abe9801 100644
--- a/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
+++ b/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
@@ -29,7 +29,6 @@ int
main(void)
{
EGLDisplay dpy;
- EGLint egl_major, egl_minor;
EGLDeviceEXT device = EGL_NO_DEVICE_EXT;
EGLAttrib attr;
const char *devstring = NULL;
@@ -72,7 +71,7 @@ main(void)
if (!piglit_check_egl_error(EGL_NOT_INITIALIZED))
piglit_report_result(PIGLIT_FAIL);
- if (!eglInitialize(dpy, &egl_major, &egl_minor)) {
+ if (!eglInitialize(dpy, NULL, NULL)) {
printf("eglInitialize failed\n");
piglit_report_result(PIGLIT_FAIL);
}
--
2.18.0
More information about the Piglit
mailing list