Lines Matching refs:index
94 unsigned int index; in GlxAllocContextTag() local
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()
129 index = cl->contextTagCount; in GlxAllocContextTag()
134 assert(index >= 0); 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()