/* Initialize the visualInfo based on the attribute list */
static void createVisualInfo(GLwDrawingAreaWidget w){
- static XVisualInfo *visualInfo;
assert(w->glwDrawingArea.attribList);
w->glwDrawingArea.visualInfo=glXChooseVisual(XtDisplay(w),XScreenNumberOfScreen(XtScreen(w)),w->glwDrawingArea.attribList);
if(!w->glwDrawingArea.visualInfo) error((Widget)w,"requested visual not supported");
static void Redraw(GLwDrawingAreaWidget w,XEvent *event,Region region){
GLwDrawingAreaCallbackStruct cb;
- XtCallbackList cblist;
if(!XtIsRealized((Widget)w)) return;
cb.reason=GLwCR_EXPOSE;
cb.event=event;