Changeset 45616 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c
- Timestamp:
- Apr 18, 2013 5:44:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c
r45248 r45616 307 307 crStateSwitchPrepare(cr_server.bUseMultipleContexts ? NULL : ctx, oldCtx, idDrawFBO, idReadFBO); 308 308 309 /* 310 crDebug("**** %s client %d curCtx=%d curWin=%d", __func__, 311 cr_server.curClient->number, ctxPos, window); 312 */ 313 cr_server.curClient->currentContextNumber = context; 314 cr_server.curClient->currentCtxInfo = ctxInfo; 315 cr_server.curClient->currentMural = mural; 316 cr_server.curClient->currentWindow = window; 317 318 CRASSERT(cr_server.curClient->currentCtxInfo); 319 CRASSERT(cr_server.curClient->currentCtxInfo->pContext); 309 if (cr_server.curClient) 310 { 311 /* 312 crDebug("**** %s client %d curCtx=%d curWin=%d", __func__, 313 cr_server.curClient->number, ctxPos, window); 314 */ 315 cr_server.curClient->currentContextNumber = context; 316 cr_server.curClient->currentCtxInfo = ctxInfo; 317 cr_server.curClient->currentMural = mural; 318 cr_server.curClient->currentWindow = window; 319 320 CRASSERT(cr_server.curClient->currentCtxInfo); 321 CRASSERT(cr_server.curClient->currentCtxInfo->pContext); 322 } 320 323 321 324 /* This is a hack to force updating the 'current' attribs */ … … 401 404 402 405 if (!ctx->framebufferobject.drawFB 403 && (ctx->buffer.drawBuffer == GL_FRONT || ctx->buffer.drawBuffer == GL_FRONT_LEFT)) 406 && (ctx->buffer.drawBuffer == GL_FRONT || ctx->buffer.drawBuffer == GL_FRONT_LEFT) 407 && cr_server.curClient) 404 408 cr_server.curClient->currentMural->bFbDraw = GL_TRUE; 405 409
Note:
See TracChangeset
for help on using the changeset viewer.