[Piglit] [PATCH 25/29] tests/egl: Add missing type cast

Pauli Nieminen pauli.nieminen at linux.intel.com
Mon May 21 11:09:00 PDT 2012


Protable code should cast to EGL native types always before passing
variables to functions taking a native parameter.

Signed-off-by: Pauli Nieminen <pauli.nieminen at linux.intel.com>
---
 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



More information about the Piglit mailing list