Lines Matching defs:cx
51 __GLXcontext *cx;
56 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
57 if (!cx) {
64 if (cx->feedbackBufSize < size) {
65 cx->feedbackBuf = reallocarray(cx->feedbackBuf,
67 if (!cx->feedbackBuf) {
71 cx->feedbackBufSize = size;
73 glFeedbackBuffer(size, type, cx->feedbackBuf);
81 __GLXcontext *cx;
87 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
88 if (!cx) {
94 if (cx->selectBufSize < size) {
95 cx->selectBuf = reallocarray(cx->selectBuf,
97 if (!cx->selectBuf) {
101 cx->selectBufSize = size;
103 glSelectBuffer(size, cx->selectBuf);
112 __GLXcontext *cx;
120 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
121 if (!cx) {
143 switch (cx->renderMode) {
145 cx->renderMode = newMode;
150 nitems = cx->feedbackBufSize;
156 retBuffer = (GLubyte *) cx->feedbackBuf;
157 cx->renderMode = newMode;
162 nitems = cx->selectBufSize;
165 GLuint *bp = cx->selectBuf;
183 nitems = bp - cx->selectBuf;
186 retBuffer = (GLubyte *) cx->selectBuf;
187 cx->renderMode = newMode;
215 __GLXcontext *cx;
220 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
221 if (!cx) {
233 __GLXcontext *cx;
239 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
240 if (!cx) {
329 __GLXcontext *cx;
349 cx = __glXForceCurrent(cl, __GLX_GET_SINGLE_CONTEXT_TAG(pc), &error);
350 if (!cx) {
368 buf = __glXcombine_strings(buf1, cx->pGlxScreen->GLextensions);