wined3d: Make sure all contexts are finished drawing before calling SwapBuffers().

This causes a small performance hit when multiple GL contexts are used. As an
optimization we could use ARB_sync to only wait for the last draw call instead
of all GL commands.
This commit is contained in:
Henri Verbeet 2010-01-27 20:19:41 +01:00 committed by Alexandre Julliard
parent ce42470138
commit daf0aeb34a
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
swapchain_blit(This, context, &src_rect, &dst_rect);
}
if (This->num_contexts > 1) wglFinish();
SwapBuffers(This->context[0]->hdc); /* TODO: cycle through the swapchain buffers */
TRACE("SwapBuffers called, Starting new frame\n");