glx: fix glvnd pointer types
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 14 Jun 2019 14:15:10 +0000 (15:15 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 20 Jun 2019 16:21:37 +0000 (17:21 +0100)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110709
Fixes: 22a9e00aab66d3dd6890 ("glx: Implement the libglvnd interface.")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/g_glxglvnddispatchfuncs.c
src/glx/glxglvnd.c

index 8b95f1c5a9203593fb3df318591e7b3771d0729a..e6f4e6e1f50862acb349586791201e6a5d97908d 100644 (file)
@@ -124,7 +124,7 @@ static void dispatch_BindTexImageEXT(Display *dpy, GLXDrawable drawable,
 
 
 static GLXFBConfigSGIX *dispatch_ChooseFBConfigSGIX(Display *dpy, int screen,
-                                                    const int *attrib_list,
+                                                    int *attrib_list,
                                                     int *nelements)
 {
     PFNGLXCHOOSEFBCONFIGSGIXPROC pChooseFBConfigSGIX;
@@ -216,7 +216,7 @@ static GLXPbuffer dispatch_CreateGLXPbufferSGIX(Display *dpy,
                                                 GLXFBConfig config,
                                                 unsigned int width,
                                                 unsigned int height,
-                                                const int *attrib_list)
+                                                int *attrib_list)
 {
     PFNGLXCREATEGLXPBUFFERSGIXPROC pCreateGLXPbufferSGIX;
     __GLXvendorInfo *dd;
index b6b415114c9fd29afaac83fc6b9841bd21765562..bf5c2a06b0cfd845196de4491987cc464ff2c870 100644 (file)
@@ -41,7 +41,7 @@ static void *__glXGLVNDGetDispatchAddress(const GLubyte *procName)
 {
     unsigned internalIndex = FindGLXFunction(procName);
 
-    return __glXDispatchFunctions[internalIndex];
+    return (void*)__glXDispatchFunctions[internalIndex];
 }
 
 static void __glXGLVNDSetDispatchIndex(const GLubyte *procName, int index)