Lines Matching refs:dpyPriv
856 struct glx_display *dpyPriv, *d; in __glXInitialize() local
864 for (dpyPriv = glx_displays; dpyPriv; dpyPriv = dpyPriv->next) { in __glXInitialize()
865 if (dpyPriv->dpy == dpy) { in __glXInitialize()
867 return dpyPriv; in __glXInitialize()
874 dpyPriv = calloc(1, sizeof *dpyPriv); in __glXInitialize()
875 if (!dpyPriv) in __glXInitialize()
878 dpyPriv->codes = XInitExtension(dpy, __glXExtensionName); in __glXInitialize()
879 if (!dpyPriv->codes) { in __glXInitialize()
880 free(dpyPriv); in __glXInitialize()
884 dpyPriv->dpy = dpy; in __glXInitialize()
885 dpyPriv->majorOpcode = dpyPriv->codes->major_opcode; in __glXInitialize()
886 dpyPriv->serverGLXvendor = 0x0; in __glXInitialize()
887 dpyPriv->serverGLXversion = 0x0; in __glXInitialize()
892 if (!QueryVersion(dpy, dpyPriv->majorOpcode, in __glXInitialize()
893 &dpyPriv->majorVersion, &dpyPriv->minorVersion) in __glXInitialize()
894 || (dpyPriv->majorVersion == 1 && dpyPriv->minorVersion < 1)) { in __glXInitialize()
895 free(dpyPriv); in __glXInitialize()
900 XESetWireToEvent(dpy, dpyPriv->codes->first_event + i, __glXWireToEvent); in __glXInitialize()
901 XESetEventToWire(dpy, dpyPriv->codes->first_event + i, __glXEventToWire); in __glXInitialize()
904 XESetCloseDisplay(dpy, dpyPriv->codes->extension, __glXCloseDisplay); in __glXInitialize()
905 XESetErrorString (dpy, dpyPriv->codes->extension,__glXErrorString); in __glXInitialize()
907 dpyPriv->glXDrawHash = __glxHashCreate(); in __glXInitialize()
913 dpyPriv->drawHash = __glxHashCreate(); in __glXInitialize()
924 dpyPriv->dri3Display = dri3_create_display(dpy); in __glXInitialize()
926 dpyPriv->dri2Display = dri2CreateDisplay(dpy); in __glXInitialize()
927 dpyPriv->driDisplay = driCreateDisplay(dpy); in __glXInitialize()
931 dpyPriv->driswDisplay = driswCreateDisplay(dpy); in __glXInitialize()
935 if (!applegl_create_display(dpyPriv)) { in __glXInitialize()
936 free(dpyPriv); in __glXInitialize()
943 dpyPriv->windowsdriDisplay = driwindowsCreateDisplay(dpy); in __glXInitialize()
946 if (!AllocAndFetchScreenConfigs(dpy, dpyPriv)) { in __glXInitialize()
947 free(dpyPriv); in __glXInitialize()
951 __glX_send_client_info(dpyPriv); in __glXInitialize()
960 glx_display_free(dpyPriv); in __glXInitialize()
965 dpyPriv->next = glx_displays; in __glXInitialize()
966 glx_displays = dpyPriv; in __glXInitialize()
970 return dpyPriv; in __glXInitialize()