Protable code should cast to EGL native types always before passing variables to functions taking a native parameter.
Signed-off-by: Pauli Nieminen <[email protected]> --- tests/egl/egl-util.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/egl/egl-util.c b/tests/egl/egl-util.c index 41fc31f..639515e 100644 --- a/tests/egl/egl-util.c +++ b/tests/egl/egl-util.c @@ -179,7 +179,7 @@ egl_util_run(const struct egl_test *test, int argc, char *argv[]) } - state.egl_dpy = eglGetDisplay(state.dpy); + state.egl_dpy = eglGetDisplay((EGLNativeDisplayType)state.dpy); if (state.egl_dpy == EGL_NO_DISPLAY) { fprintf(stderr, "eglGetDisplay() failed\n"); piglit_report_result(PIGLIT_FAIL); -- 1.7.5.4 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
