- if (context == old_context) {
- glws::makeCurrent(drawable, new_context);
+ glretrace::Context *currentContext = glretrace::getCurrentContext();
+ if (currentContext == old_context) {
+ glretrace::makeCurrent(call, currentContext->drawable, new_context);