Lines Matching refs:drawable

150    ac->drawable = NULL;  in apple_glx_create_context()
258 if (ac->drawable) { in apple_glx_destroy_context()
259 ac->drawable->destroy(ac->drawable); in apple_glx_destroy_context()
283 GLXDrawable drawable) in apple_glx_make_current_context() argument
293 __func__, (void *) oldac, (void *) ac, drawable); in apple_glx_make_current_context()
302 if (ac && ac->drawable && ac->drawable->drawable == drawable) { in apple_glx_make_current_context()
320 if (oldac->drawable) { in apple_glx_make_current_context()
321 oldac->drawable->destroy(oldac->drawable); in apple_glx_make_current_context()
322 oldac->drawable = NULL; in apple_glx_make_current_context()
332 if (None == drawable) { in apple_glx_make_current_context()
343 if (ac->drawable) { in apple_glx_make_current_context()
344 ac->drawable->destroy(ac->drawable); in apple_glx_make_current_context()
345 ac->drawable = NULL; in apple_glx_make_current_context()
358 if (ac->drawable && ac->drawable->drawable == drawable) { in apple_glx_make_current_context()
359 newagd = ac->drawable; in apple_glx_make_current_context()
364 apple_glx_drawable_find(drawable, APPLE_GLX_DRAWABLE_REFERENCE); in apple_glx_make_current_context()
371 if (ac->drawable && !same_drawable) { in apple_glx_make_current_context()
372 ac->drawable->destroy(ac->drawable); in apple_glx_make_current_context()
373 ac->drawable = NULL; in apple_glx_make_current_context()
377 if (apple_glx_surface_create(dpy, ac->screen, drawable, &newagd)) in apple_glx_make_current_context()
404 ac->drawable = newagd; in apple_glx_make_current_context()
410 assert(ac->drawable == newagd); in apple_glx_make_current_context()
414 ac->drawable = newagd; in apple_glx_make_current_context()
439 assert(NULL != ac->drawable); in apple_glx_make_current_context()
446 switch (ac->drawable->type) { in apple_glx_make_current_context()
450 if (ac->drawable->callbacks.make_current) { in apple_glx_make_current_context()
451 if (ac->drawable->callbacks.make_current(ac, ac->drawable)) in apple_glx_make_current_context()
458 ac->drawable->type); in apple_glx_make_current_context()
466 apple_glx_is_current_drawable(Display * dpy, void *ptr, GLXDrawable drawable) in apple_glx_is_current_drawable() argument
470 if (ac->drawable && ac->drawable->drawable == drawable) { in apple_glx_is_current_drawable()
473 else if (NULL == ac->drawable && None != ac->last_surface_window) { in apple_glx_is_current_drawable()
476 return (ac->drawable && ac->drawable->drawable == drawable); in apple_glx_is_current_drawable()
535 if (ac->drawable && APPLE_GLX_DRAWABLE_SURFACE == ac->drawable->type in apple_glx_context_surface_changed()
536 && ac->drawable->types.surface.uid == uid) { in apple_glx_context_surface_changed()
561 if (NULL == ac->drawable && None != ac->last_surface_window) { in apple_glx_context_update()
579 if (ac->drawable && APPLE_GLX_DRAWABLE_SURFACE == ac->drawable->type in apple_glx_context_update()
580 && ac->drawable->types.surface.pending_destroy) { in apple_glx_context_update()
584 if (ac->drawable) { in apple_glx_context_update()
590 __func__, ac->drawable->drawable); in apple_glx_context_update()
592 d = ac->drawable; in apple_glx_context_update()
594 ac->last_surface_window = d->drawable; in apple_glx_context_update()
596 ac->drawable = NULL; in apple_glx_context_update()