Lines Matching refs:gc
67 windowsContext *gc;
69 gc = calloc(1, sizeof *gc);
70 if (gc == NULL)
105 gc->pxfi = pxfi;
106 SetPixelFormat(hdc, gc->pxfi, NULL);
108 gc->ctx = wglCreateContext(hdc);
110 if (shared && gc->ctx)
111 wglShareLists(shared->ctx, gc->ctx);
116 if (!gc->ctx)
118 free(gc);
122 return gc;
128 windowsContext *gc;
130 gc = calloc(1, sizeof *gc);
131 if (gc == NULL)
169 gc->pxfi = pxfi;
170 SetPixelFormat(hdc, gc->pxfi, NULL);
172 gc->ctx = wglCreateContextAttribsARB(hdc, shareContext, attribList);
177 if (!gc->ctx)
179 free(gc);
183 return gc;