Lines Matching defs:cl
93 GlxClientPriv *cl;
100 cl = GlxGetClientData(client);
101 if (cl == NULL) {
106 for (index=0; index<cl->contextTagCount; index++) {
107 if (cl->contextTags[index].vendor == NULL) {
111 if (index >= cl->contextTagCount) {
114 unsigned int newSize = cl->contextTagCount * 2;
121 realloc(cl->contextTags, newSize * sizeof(GlxContextTagInfo));
126 memset(&newTags[cl->contextTagCount], 0,
127 (newSize - cl->contextTagCount) * sizeof(GlxContextTagInfo));
129 index = cl->contextTagCount;
130 cl->contextTags = newTags;
131 cl->contextTagCount = newSize;
135 assert(index < cl->contextTagCount);
136 memset(&cl->contextTags[index], 0, sizeof(GlxContextTagInfo));
137 cl->contextTags[index].tag = (GLXContextTag) (index + 1);
138 cl->contextTags[index].client = client;
139 cl->contextTags[index].vendor = vendor;
140 return &cl->contextTags[index];
145 GlxClientPriv *cl = GlxGetClientData(client);
146 if (cl == NULL) {
150 if (tag > 0 && (tag - 1) < cl->contextTagCount) {
151 if (cl->contextTags[tag - 1].vendor != NULL) {
152 assert(cl->contextTags[tag - 1].client == client);
153 return &cl->contextTags[tag - 1];
194 GlxClientPriv *cl;
200 cl = GlxGetClientData(client);
201 if (cl == NULL) {
206 cl->vendors[screen->myNum] = vendor;
208 cl->vendors[screen->myNum] = GlxGetVendorForScreen(NULL, screen);
218 GlxClientPriv *cl = GlxGetClientData(client);
219 if (cl != NULL) {
220 return cl->vendors[screen->myNum];