Lines Matching refs:newCtx

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