Lines Matching defs:newCtx

1411  * \param newCtx  the new GL context. If NULL then there will be no current GL
1417 _mesa_make_current( struct gl_context *newCtx,
1424 _mesa_debug(newCtx, "_mesa_make_current()\n");
1428 if (newCtx && drawBuffer && newCtx->WinSysDrawBuffer != drawBuffer) {
1429 if (!check_compatible(newCtx, drawBuffer)) {
1430 _mesa_warning(newCtx,
1435 if (newCtx && readBuffer && newCtx->WinSysReadBuffer != readBuffer) {
1436 if (!check_compatible(newCtx, readBuffer)) {
1437 _mesa_warning(newCtx,
1446 curCtx != newCtx)
1450 _glapi_set_context((void *) newCtx);
1451 ASSERT(_mesa_get_current_context() == newCtx);
1453 if (!newCtx) {
1457 _glapi_set_dispatch(newCtx->CurrentDispatch);
1462 _mesa_reference_framebuffer(&newCtx->WinSysDrawBuffer, drawBuffer);
1463 _mesa_reference_framebuffer(&newCtx->WinSysReadBuffer, readBuffer);
1469 if (!newCtx->DrawBuffer || _mesa_is_winsys_fbo(newCtx->DrawBuffer)) {
1470 _mesa_reference_framebuffer(&newCtx->DrawBuffer, drawBuffer);
1475 _mesa_update_draw_buffers(newCtx);
1477 if (!newCtx->ReadBuffer || _mesa_is_winsys_fbo(newCtx->ReadBuffer)) {
1478 _mesa_reference_framebuffer(&newCtx->ReadBuffer, readBuffer);
1484 newCtx->NewState |= _NEW_BUFFERS;
1491 initialize_framebuffer_size(newCtx, drawBuffer);
1494 initialize_framebuffer_size(newCtx, readBuffer);
1497 _mesa_resizebuffers(newCtx);
1517 _mesa_check_init_viewport(newCtx,
1522 if (newCtx->FirstTimeCurrent) {
1523 _mesa_compute_version(newCtx);
1525 newCtx->Extensions.String = _mesa_make_extension_string(newCtx);
1527 check_context_limits(newCtx);
1538 newCtx->FirstTimeCurrent = GL_FALSE;