Module: wine Branch: master Commit: 79c438b2f2d3db5edd066f124c6b1b1d7564de8b URL: http://source.winehq.org/git/wine.git/?a=commit;h=79c438b2f2d3db5edd066f124c...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Sep 6 19:19:48 2011 +0200
wined3d: Implement wined3d_surface_flip() as a blit.
This allows us to actually take the "override" parameter into account. Plain back -> front flips will be detected in wined3d_surface_flip() and will still be handled by wined3d_swapchain_present().
---
dlls/wined3d/surface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 706c70a..633517d 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -3807,7 +3807,7 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined return WINED3D_OK; }
- return wined3d_swapchain_present(swapchain, NULL, NULL, swapchain->win_handle, NULL, 0); + return wined3d_surface_blt(surface, NULL, override, NULL, 0, NULL, WINED3DTEXF_POINT); }
/* Do not call while under the GL lock. */