[PATCH 3/5] wined3d: Ensure draw ordering across contexts.

Stefan Dösinger stefandoesinger at gmx.at
Thu Jan 28 02:40:24 CST 2010


> -    if (SUCCEEDED(IWineD3DSurface_GetContainer((IWineD3DSurface *)target, &IID_IWineD3DSwapChain, (void **)&swapchain))) {
> -        if (target == (IWineD3DSurfaceImpl*) swapchain->frontBuffer) {
> -            wglFlush();
> -        }
> -        IWineD3DSwapChain_Release((IWineD3DSwapChain *) swapchain);
> -    }
> +    wglFlush(); /* Flush to ensure ordering across contexts. */
Why do we have to do this even when there is only one context? In the event another context is created after the draw?




More information about the wine-devel mailing list