wined3d: Store the last active thread.
This commit is contained in:
parent
1fb168f018
commit
9dedfd71e0
|
@ -840,6 +840,7 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
|
||||||
if(This->lastActiveRenderTarget != target || tid != This->lastThread) {
|
if(This->lastActiveRenderTarget != target || tid != This->lastThread) {
|
||||||
context = FindContext(This, target, tid);
|
context = FindContext(This, target, tid);
|
||||||
This->lastActiveRenderTarget = target;
|
This->lastActiveRenderTarget = target;
|
||||||
|
This->lastThread = tid;
|
||||||
} else {
|
} else {
|
||||||
/* Stick to the old context */
|
/* Stick to the old context */
|
||||||
context = This->activeContext;
|
context = This->activeContext;
|
||||||
|
|
Loading…
Reference in New Issue