Henri Verbeet : wined3d: Use wined3d_texture_load_location() in swapchain_gl_frontbuffer_updated().

Alexandre Julliard julliard at winehq.org
Thu Aug 4 17:20:18 CDT 2016


Module: wine
Branch: master
Commit: f80ba28a1552db3d455cb88ed063c87bcc72c58f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f80ba28a1552db3d455cb88ed063c87bcc72c58f

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Aug  4 12:06:59 2016 +0200

wined3d: Use wined3d_texture_load_location() in swapchain_gl_frontbuffer_updated().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/swapchain.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 52f3e71..802e2bc 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -637,12 +637,11 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain,
 
 static void swapchain_gl_frontbuffer_updated(struct wined3d_swapchain *swapchain)
 {
-    struct wined3d_surface *surface;
+    struct wined3d_texture *front_buffer = swapchain->front_buffer;
     struct wined3d_context *context;
 
-    surface = swapchain->front_buffer->sub_resources[0].u.surface;
-    context = context_acquire(swapchain->device, surface);
-    surface_load_location(surface, context, surface->container->resource.draw_binding);
+    context = context_acquire(swapchain->device, front_buffer->sub_resources[0].u.surface);
+    wined3d_texture_load_location(front_buffer, 0, context, front_buffer->resource.draw_binding);
     context_release(context);
     SetRectEmpty(&swapchain->front_buffer_update);
 }




More information about the wine-cvs mailing list