Convert a left-over private void * to __DRIcontext *.
authorKristian Høgsberg <krh@hinata.boston.redhat.com>
Thu, 17 May 2007 20:11:19 +0000 (16:11 -0400)
committerKristian Høgsberg <krh@redhat.com>
Thu, 11 Oct 2007 15:27:51 +0000 (11:27 -0400)
include/GL/internal/dri_interface.h
src/glx/x11/glxcmds.c
src/mesa/drivers/dri/common/dri_util.c

index 657e3828cca213e906451ac5f80b7abe3f958541..46f1f441d01dc6bd92d41adf223cfa9e2eca12c2 100644 (file)
@@ -377,7 +377,7 @@ struct __DRIscreenRec {
     void * (*createNewContext)(__DRIscreen *screen,
                               const __GLcontextModes *modes,
                               int render_type,
-                              void *sharedPrivate,
+                              __DRIcontext *shared,
                               drm_context_t hwContext, __DRIcontext *pctx);
 
     /**
index a680c646d95f1d1c7684d983f1474027af26b4a8..0a49e9458639b20d0a06c37e9a28bb1d581c122e 100644 (file)
@@ -395,8 +395,8 @@ CreateContext(Display *dpy, XVisualInfo *vis,
            }
 
            if (psc && psc->driScreen.private) {
-               void * const shared = (shareList != NULL)
-                   ? shareList->driContext.private : NULL;
+               __DRIcontext *shared = (shareList != NULL)
+                   ? &shareList->driContext : NULL;
 
 
                if (!XF86DRICreateContextWithConfig(dpy, psc->scr,
index b88592313ed6e09a67c671ca1f0fe16942bab2e1..20fee27f0a2adcf8d4489a8e89355adc9a0d6708 100644 (file)
@@ -553,7 +553,7 @@ driDestroyContext(__DRIcontext *context)
  * \param modes         Mode used to create the new context.
  * \param render_type   Type of rendering target.  \c GLX_RGBA is the only
  *                      type likely to ever be supported for direct-rendering.
- * \param sharedPrivate The shared context dependent methods or \c NULL if
+ * \param shared        The shared context dependent methods or \c NULL if
  *                      non-existent.
  * \param pctx          DRI context to receive the context dependent methods.
  *
@@ -569,11 +569,11 @@ driDestroyContext(__DRIcontext *context)
  */
 static void *
 driCreateNewContext(__DRIscreen *screen, const __GLcontextModes *modes,
-                   int render_type, void *sharedPrivate
+                   int render_type, __DRIcontext *shared
                    drm_context_t hwContext, __DRIcontext *pctx)
 {
     __DRIcontextPrivate *pcp;
-    __DRIcontextPrivate *pshare = (__DRIcontextPrivate *) sharedPrivate;
+    __DRIcontextPrivate *pshare = (shared != NULL) ? shared->private : NULL;
     __DRIscreenPrivate *psp;
     void * const shareCtx = (pshare != NULL) ? pshare->driverPrivate : NULL;