[Mesa-dev] [PATCH] egl_glx: use casts to silence warnings in GLX_eglDestroyContext()

Brian Paul brianp at vmware.com
Fri Dec 2 06:53:41 PST 2011


---
 src/egl/drivers/glx/egl_glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/drivers/glx/egl_glx.c b/src/egl/drivers/glx/egl_glx.c
index bdc8a28..6479daf 100644
--- a/src/egl/drivers/glx/egl_glx.c
+++ b/src/egl/drivers/glx/egl_glx.c
@@ -724,7 +724,7 @@ GLX_eglDestroyContext(_EGLDriver *drv, _EGLDisplay *disp, _EGLContext *ctx)
 
    if (_eglPutContext(ctx)) {
       assert(GLX_ctx);
-      GLX_drv->glXDestroyContext(disp, ctx);
+      GLX_drv->glXDestroyContext((Display *) disp, (GLXContext) ctx);
 
       free(GLX_ctx);
    }
-- 
1.7.3.4



More information about the mesa-dev mailing list