ctx->CurrentServerDispatch = ctx->Save;
_glapi_set_dispatch(ctx->CurrentServerDispatch);
- if (ctx->MarshalExec == NULL) {
+ if (!ctx->GLThread.enabled) {
ctx->CurrentClientDispatch = ctx->CurrentServerDispatch;
}
}
ctx->CurrentServerDispatch = ctx->Exec;
_glapi_set_dispatch(ctx->CurrentServerDispatch);
- if (ctx->MarshalExec == NULL) {
+ if (!ctx->GLThread.enabled) {
ctx->CurrentClientDispatch = ctx->CurrentServerDispatch;
}
}
if (save_compile_flag) {
ctx->CurrentServerDispatch = ctx->Save;
_glapi_set_dispatch(ctx->CurrentServerDispatch);
- if (ctx->MarshalExec == NULL) {
+ if (!ctx->GLThread.enabled) {
ctx->CurrentClientDispatch = ctx->CurrentServerDispatch;
}
}
if (save_compile_flag) {
ctx->CurrentServerDispatch = ctx->Save;
_glapi_set_dispatch(ctx->CurrentServerDispatch);
- if (ctx->MarshalExec == NULL) {
+ if (!ctx->GLThread.enabled) {
ctx->CurrentClientDispatch = ctx->CurrentServerDispatch;
}
}
*/
if (unlikely(st->pin_thread_counter != ST_L3_PINNING_DISABLED &&
/* no glthread */
- ctx->CurrentClientDispatch != ctx->MarshalExec &&
+ !ctx->GLThread.enabled &&
/* do it occasionally */
++st->pin_thread_counter % 512 == 0)) {
st->pin_thread_counter = 0;
/* We may have been called from a display list, in which case we should
* leave dlist.c's dispatch table in place.
*/
- if (ctx->CurrentClientDispatch == ctx->MarshalExec) {
+ if (ctx->GLThread.enabled) {
ctx->CurrentServerDispatch = ctx->Exec;
} else if (ctx->CurrentClientDispatch == ctx->OutsideBeginEnd) {
ctx->CurrentClientDispatch = ctx->Exec;
ctx->Exec = ctx->OutsideBeginEnd;
- if (ctx->CurrentClientDispatch == ctx->MarshalExec) {
+ if (ctx->GLThread.enabled) {
ctx->CurrentServerDispatch = ctx->Exec;
} else if (ctx->CurrentClientDispatch == ctx->BeginEnd) {
ctx->CurrentClientDispatch = ctx->Exec;