• Home
  • Raw
  • Download

Lines Matching refs:newCtx

1461 _mesa_make_current( struct gl_context *newCtx,  in _mesa_make_current()  argument
1468 _mesa_debug(newCtx, "_mesa_make_current()\n"); in _mesa_make_current()
1472 if (newCtx && drawBuffer && newCtx->WinSysDrawBuffer != drawBuffer) { in _mesa_make_current()
1473 if (!check_compatible(newCtx, drawBuffer)) { in _mesa_make_current()
1474 _mesa_warning(newCtx, in _mesa_make_current()
1479 if (newCtx && readBuffer && newCtx->WinSysReadBuffer != readBuffer) { in _mesa_make_current()
1480 if (!check_compatible(newCtx, readBuffer)) { in _mesa_make_current()
1481 _mesa_warning(newCtx, in _mesa_make_current()
1489 curCtx != newCtx && in _mesa_make_current()
1501 if (!newCtx) { in _mesa_make_current()
1515 _glapi_set_context((void *) newCtx); in _mesa_make_current()
1516 assert(_mesa_get_current_context() == newCtx); in _mesa_make_current()
1517 _glapi_set_dispatch(newCtx->CurrentClientDispatch); in _mesa_make_current()
1522 _mesa_reference_framebuffer(&newCtx->WinSysDrawBuffer, drawBuffer); in _mesa_make_current()
1523 _mesa_reference_framebuffer(&newCtx->WinSysReadBuffer, readBuffer); in _mesa_make_current()
1529 if (!newCtx->DrawBuffer || _mesa_is_winsys_fbo(newCtx->DrawBuffer)) { in _mesa_make_current()
1530 _mesa_reference_framebuffer(&newCtx->DrawBuffer, drawBuffer); in _mesa_make_current()
1535 _mesa_update_draw_buffers(newCtx); in _mesa_make_current()
1536 _mesa_update_allow_draw_out_of_order(newCtx); in _mesa_make_current()
1537 _mesa_update_valid_to_render_state(newCtx); in _mesa_make_current()
1539 if (!newCtx->ReadBuffer || _mesa_is_winsys_fbo(newCtx->ReadBuffer)) { in _mesa_make_current()
1540 _mesa_reference_framebuffer(&newCtx->ReadBuffer, readBuffer); in _mesa_make_current()
1547 if (_mesa_is_gles(newCtx) && in _mesa_make_current()
1548 !newCtx->ReadBuffer->Visual.doubleBufferMode) in _mesa_make_current()
1549 if (newCtx->ReadBuffer->ColorReadBuffer == GL_FRONT) in _mesa_make_current()
1550 newCtx->ReadBuffer->ColorReadBuffer = GL_BACK; in _mesa_make_current()
1556 newCtx->NewState |= _NEW_BUFFERS; in _mesa_make_current()
1558 check_init_viewport(newCtx, drawBuffer->Width, drawBuffer->Height); in _mesa_make_current()
1561 if (newCtx->FirstTimeCurrent) { in _mesa_make_current()
1562 handle_first_current(newCtx); in _mesa_make_current()
1563 newCtx->FirstTimeCurrent = GL_FALSE; in _mesa_make_current()