/*#define DRI_NEW_INTERFACE_ONLY*/
#ifndef GLX_OML_sync_control
-typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
+typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator);
#endif
/**
float * usage );
static void *driCreateNewDrawable(Display *dpy, const __GLcontextModes *modes,
- GLXDrawable draw, __DRIdrawable *pdraw, int renderType, const int *attrs);
+ __DRIid draw, __DRIdrawable *pdraw, int renderType, const int *attrs);
static void driDestroyDrawable(Display *dpy, void *drawablePrivate);
return GL_TRUE;
}
-static __DRIdrawable *__driFindDrawable(void *drawHash, GLXDrawable draw)
+static __DRIdrawable *__driFindDrawable(void *drawHash, __DRIid draw)
{
int retcode;
__DRIdrawable *pdraw;
*/
static void __driGarbageCollectDrawables(void *drawHash)
{
- GLXDrawable draw;
+ __DRIid draw;
__DRIdrawable *pdraw;
Display *dpy;
* into their respective real types it also assures they are not \c NULL.
*/
static Bool driUnbindContext3(Display *dpy, int scrn,
- GLXDrawable draw, GLXDrawable read,
+ __DRIid draw, __DRIid read,
__DRIcontext *ctx)
{
__DRIscreen *pDRIScreen;
* is added. Is it safe to assume that the drawable is a window?
*/
static Bool DoBindContext(Display *dpy,
- GLXDrawable draw, GLXDrawable read,
+ __DRIid draw, __DRIid read,
__DRIcontext *ctx, const __GLcontextModes * modes,
__DRIscreenPrivate *psp)
{
__DRIcontextPrivate * const pcp = ctx->private;
- /* Find the _DRIdrawable which corresponds to the writing GLXDrawable */
+ /* Find the _DRIdrawable which corresponds to the writing drawable. */
pdraw = __driFindDrawable(psp->drawHash, draw);
if (!pdraw) {
/* Allocate a new drawable */
}
pdp = (__DRIdrawablePrivate *) pdraw->private;
- /* Find the _DRIdrawable which corresponds to the reading GLXDrawable */
+ /* Find the _DRIdrawable which corresponds to the reading drawable. */
if (read == draw) {
/* read buffer == draw buffer */
prp = pdp;
* function.
*/
static Bool driBindContext3(Display *dpy, int scrn,
- GLXDrawable draw, GLXDrawable read,
+ __DRIid draw, __DRIid read,
__DRIcontext * ctx)
{
__DRIscreen *pDRIScreen;
*/
static void *driCreateNewDrawable(Display *dpy,
const __GLcontextModes *modes,
- GLXDrawable draw,
+ __DRIid draw,
__DRIdrawable *pdraw,
int renderType,
const int *attrs)
return (void *) pdp;
}
-static __DRIdrawable *driGetDrawable(Display *dpy, GLXDrawable draw,
+static __DRIdrawable *driGetDrawable(Display *dpy, __DRIid draw,
void *screenPrivate)
{
__DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate;
};
-typedef Bool (GetDrawableInfo)( Display *dpy, int scrn, Drawable draw,
+typedef Bool (GetDrawableInfo)( Display *dpy, int scrn, __DRIid draw,
unsigned int * index, unsigned int * stamp,
int * x, int * y, int * width, int * height,
int * numClipRects, drm_clip_rect_t * pClipRects,
/**
* X's drawable ID associated with this private drawable.
*/
- GLXDrawable draw;
+ __DRIid draw;
__DRIdrawable *pdraw;
/**