Lines Matching defs:ctx

163 static int crServerRemoveClientContext(CRClient *pClient, GLint ctx)
169 if (pClient->contextList[pos] == ctx)
182 CRContext *ctx = (CRContext *) data2;
184 CR_STATE_SHAREDOBJ_USAGE_CLEAR(mural, ctx);
188 crServerDispatchDestroyContext( GLint ctx )
196 crCtxInfo = (CRContextInfo *) crHashtableSearch(cr_server.contextTable, ctx);
198 crWarning("CRServer: DestroyContext invalid context %d", ctx);
204 crDebug("CRServer: DestroyContext context %d", ctx);
215 crHashtableDelete(cr_server.contextTable, ctx, NULL);
234 found = crServerRemoveClientContext(cr_server.curClient, ctx);
244 found = crServerRemoveClientContext(cr_server.clients[client], ctx);
256 found = crServerRemoveClientContext(pNode->pClient, ctx);
291 CRContext *ctx, *oldCtx = NULL;
298 ctx = ctxInfo->pContext;
299 CRASSERT(ctx);
319 crStateSwitchPrepare(cr_server.bUseMultipleContexts ? NULL : ctx, oldCtx, idDrawFBO, idReadFBO);
339 if (ctx)
340 crStateSetCurrentPointers( ctx, &(cr_server.current) );
344 if (ctx) {
346 if (ctx->viewport.viewportW == 0) {
347 ctx->viewport.viewportW = mural->width;
348 ctx->viewport.viewportH = mural->height;
349 ctx->viewport.scissorW = mural->width;
350 ctx->viewport.scissorH = mural->height;
376 CR_STATE_SHAREDOBJ_USAGE_SET(mural, ctx);
389 crStateMakeCurrent( ctx );
393 GLuint id = crServerMuralFBOIdxFromBufferName(mural, ctx->buffer.drawBuffer);
400 id = crServerMuralFBOIdxFromBufferName(mural, ctx->buffer.readBuffer);
415 crStateSwitchPostprocess(ctx, cr_server.bUseMultipleContexts ? NULL : oldCtx, idDrawFBO, idReadFBO);
417 if (!ctx->framebufferobject.drawFB
418 && (ctx->buffer.drawBuffer == GL_FRONT || ctx->buffer.drawBuffer == GL_FRONT_LEFT)
424 ctx->buffer.width = mural->width;
425 ctx->buffer.height = mural->height;
429 ctx->buffer.width = 0;
430 ctx->buffer.height = 0;