Lines Matching refs:newCtx
1656 _mesa_make_current( struct gl_context *newCtx, in _mesa_make_current() argument
1663 _mesa_debug(newCtx, "_mesa_make_current()\n"); in _mesa_make_current()
1667 if (newCtx && drawBuffer && newCtx->WinSysDrawBuffer != drawBuffer) { in _mesa_make_current()
1668 if (!check_compatible(newCtx, drawBuffer)) { in _mesa_make_current()
1669 _mesa_warning(newCtx, in _mesa_make_current()
1674 if (newCtx && readBuffer && newCtx->WinSysReadBuffer != readBuffer) { in _mesa_make_current()
1675 if (!check_compatible(newCtx, readBuffer)) { in _mesa_make_current()
1676 _mesa_warning(newCtx, in _mesa_make_current()
1685 curCtx != newCtx && in _mesa_make_current()
1693 if (!newCtx) { in _mesa_make_current()
1707 _glapi_set_context((void *) newCtx); in _mesa_make_current()
1708 assert(_mesa_get_current_context() == newCtx); in _mesa_make_current()
1709 _glapi_set_dispatch(newCtx->CurrentClientDispatch); in _mesa_make_current()
1714 _mesa_reference_framebuffer(&newCtx->WinSysDrawBuffer, drawBuffer); in _mesa_make_current()
1715 _mesa_reference_framebuffer(&newCtx->WinSysReadBuffer, readBuffer); in _mesa_make_current()
1721 if (!newCtx->DrawBuffer || _mesa_is_winsys_fbo(newCtx->DrawBuffer)) { in _mesa_make_current()
1722 _mesa_reference_framebuffer(&newCtx->DrawBuffer, drawBuffer); in _mesa_make_current()
1727 _mesa_update_draw_buffers(newCtx); in _mesa_make_current()
1729 if (!newCtx->ReadBuffer || _mesa_is_winsys_fbo(newCtx->ReadBuffer)) { in _mesa_make_current()
1730 _mesa_reference_framebuffer(&newCtx->ReadBuffer, readBuffer); in _mesa_make_current()
1737 if (_mesa_is_gles(newCtx) && in _mesa_make_current()
1738 !newCtx->ReadBuffer->Visual.doubleBufferMode) in _mesa_make_current()
1739 if (newCtx->ReadBuffer->ColorReadBuffer == GL_FRONT) in _mesa_make_current()
1740 newCtx->ReadBuffer->ColorReadBuffer = GL_BACK; in _mesa_make_current()
1746 newCtx->NewState |= _NEW_BUFFERS; in _mesa_make_current()
1748 check_init_viewport(newCtx, drawBuffer->Width, drawBuffer->Height); in _mesa_make_current()
1751 if (newCtx->FirstTimeCurrent) { in _mesa_make_current()
1752 handle_first_current(newCtx); in _mesa_make_current()
1753 newCtx->FirstTimeCurrent = GL_FALSE; in _mesa_make_current()