BOOL DRI2FallbackCheckSupport(Display *dpy) { struct DRI2priv *priv; int fd; if (!DRI2FallbackInit(dpy, &priv)) return FALSE; DRI2FallbackDestroy(priv); if (!DRI2FallbackOpen(dpy, DefaultScreen(dpy), &fd)) return FALSE; close(fd); return TRUE; }
static ULONG WINAPI DRI3Present_Release( struct DRI3Present *This ) { ULONG refs = InterlockedDecrement(&This->refs); TRACE("%p decreasing refcount to %u.\n", This, refs); if (refs == 0) { /* dtor */ SDL_SetWindowFullscreen(This->sdl_win, FALSE); PRESENTDestroy(This->x11_display, This->present_priv); #if D3DADAPTER9_WITHDRI2 if (is_dri2_fallback) DRI2FallbackDestroy(This->dri2_priv); #endif free(This); } return refs; }