summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-05-12 15:12:16 +0100
committerJosé Fonseca <[email protected]>2011-05-12 15:12:16 +0100
commit6a661895e946f38b21775bf9cb45ef6b22fab85a (patch)
tree434d628bb6fb99cc3352fef3905dc2cc4ddfdab4 /src/egl/main
parent6699cd4e8d88a8fd58a885bfac7e379313334283 (diff)
egl: Fix int <-> ptr casts.
Based on zhigang gong <[email protected]>'s patch.
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/eglapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 336ec23da5a..bdfdcb3817d 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -1168,7 +1168,7 @@ eglQueryModeStringMESA(EGLDisplay dpy, EGLModeMESA mode)
EGLDisplay EGLAPIENTRY
eglGetDRMDisplayMESA(int fd)
{
- _EGLDisplay *dpy = _eglFindDisplay(_EGL_PLATFORM_DRM, (void *) fd);
+ _EGLDisplay *dpy = _eglFindDisplay(_EGL_PLATFORM_DRM, (void *) (intptr_t) fd);
return _eglGetDisplayHandle(dpy);
}