Lines Matching refs:cx
104 static int ContextGone(__GLXcontext* cx, XID id)
106 cx->idExists = GL_FALSE;
107 if (!cx->isCurrent) {
108 __glXFreeContext(cx);
163 void __glXAddToContextList(__GLXcontext *cx)
165 cx->next = glxAllContexts;
166 glxAllContexts = cx;
169 static void __glXRemoveFromContextList(__GLXcontext *cx)
173 if (cx == glxAllContexts)
174 glxAllContexts = cx->next;
178 if (c == cx)
188 GLboolean __glXFreeContext(__GLXcontext *cx)
190 if (cx->idExists || cx->isCurrent) return GL_FALSE;
192 free(cx->feedbackBuf);
193 free(cx->selectBuf);
194 if (cx == __glXLastContext) {
198 __glXRemoveFromContextList(cx);
206 cx->destroy(cx);
209 cx->next = glxPendingDestroyContexts;
210 glxPendingDestroyContexts = cx;
394 __GLXcontext *cx;
400 cx = (__GLXcontext *) __glXLookupContextByTag(cl, tag);
401 if (!cx) {
407 if (!cx->isDirect) {
408 if (cx->drawPriv == NULL) {
419 if (cx->wait && (*cx->wait)(cx, cl, error))
422 if (cx == __glXLastContext) {
424 return cx;
428 if (!cx->isDirect) {
429 if (!(*cx->forceCurrent)(cx)) {
431 cl->client->errorValue = cx->id;
436 __glXLastContext = cx;
437 return cx;
456 __GLXcontext *cx, *next;
467 for (cx = glxPendingDestroyContexts; cx != NULL; cx = next) {
468 next = cx->next;
470 cx->destroy(cx);