wined3d: Trigger frontbuffer update in surface_cpu_blt. (v2)
Sebastian Lackner
sebastian at fds-team.de
Mon Jun 19 10:54:36 CDT 2017
Fixes a regression introduced in ee17d7ba1b72b26baae90c1d5e2ae5b3e4721654.
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
Changes in v2:
* Only trigger frontbuffer update on success.
* Get rid of locations check and helper function.
dlls/wined3d/surface.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index af8b5b4cb3..c1bb53e224 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3343,6 +3343,12 @@ release:
context_unmap_bo_address(context, &dst_data, GL_PIXEL_UNPACK_BUFFER);
if (!same_sub_resource)
context_unmap_bo_address(context, &src_data, GL_PIXEL_UNPACK_BUFFER);
+ if (SUCCEEDED(hr) && dst_texture->swapchain && dst_texture->swapchain->front_buffer == dst_texture)
+ {
+ SetRect(&dst_texture->swapchain->front_buffer_update,
+ dst_box->left, dst_box->top, dst_box->right, dst_box->bottom);
+ dst_texture->swapchain->swapchain_ops->swapchain_frontbuffer_updated(dst_texture->swapchain);
+ }
if (converted_texture)
wined3d_texture_decref(converted_texture);
if (context)
--
2.13.1
More information about the wine-patches
mailing list