if (!b) {
return 0;
}
- return b->drawable;
+ return b->ws.drawable;
}
if (!b) {
return 0;
}
- return b->drawable;
+ return b->ws.drawable;
}
if (xmbuf) {
xmbuf->largestPbuffer = useLargest;
xmbuf->preservedContents = preserveContents;
- return (GLXPbuffer) xmbuf->drawable;
+ return (GLXPbuffer) xmbuf->ws.drawable;
}
else {
return 0;
{
XMesaVisual xmvis = (XMesaVisual) config;
XMesaBuffer xmbuf = XMesaCreatePixmapBuffer(xmvis, pixmap, 0);
- return xmbuf->drawable; /* need to return an X ID */
+ return xmbuf->ws.drawable; /* need to return an X ID */
}
/* A GLXPbuffer handle must be an X Drawable because that's what
* glXMakeCurrent takes.
*/
- return (GLXPbuffer) xmbuf->drawable;
+ return (GLXPbuffer) xmbuf->ws.drawable;
}
GLboolean wasCurrent; /* was ever the current buffer? */
XMesaVisual xm_visual; /* the X/Mesa visual */
- Drawable drawable; /* Usually the X window ID */
Colormap cmap; /* the X colormap */
BufferType type; /* window, pixmap, pbuffer or glxwindow */