Lines Matching refs:cl

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