Henri Verbeet : wined3d: Get rid of the "target" parameter to wined3d_context_init().

Alexandre Julliard julliard at winehq.org
Mon May 6 15:38:50 CDT 2019


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon May  6 21:34:28 2019 +0430

wined3d: Get rid of the "target" parameter to wined3d_context_init().

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

---

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

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 3b1832f..a4f4be5 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1910,8 +1910,7 @@ HGLRC context_create_wgl_attribs(const struct wined3d_gl_info *gl_info, HDC hdc,
     return ctx;
 }
 
-static BOOL wined3d_context_init(struct wined3d_context *context, struct wined3d_swapchain *swapchain,
-        struct wined3d_texture *target, const struct wined3d_format *ds_format)
+static BOOL wined3d_context_init(struct wined3d_context *context, struct wined3d_swapchain *swapchain)
 {
     struct wined3d_device *device = swapchain->device;
     DWORD state;
@@ -1952,7 +1951,7 @@ static BOOL wined3d_context_init(struct wined3d_context *context, struct wined3d
 
     context->device = device;
     context->swapchain = swapchain;
-    context->current_rt.texture = target;
+    context->current_rt.texture = swapchain->front_buffer;
     context->current_rt.sub_resource_idx = 0;
     context->tid = GetCurrentThreadId();
 
@@ -1981,7 +1980,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain, cons
         return NULL;
     context = &context_gl->c;
 
-    if (!(wined3d_context_init(context, swapchain, target, ds_format)))
+    if (!(wined3d_context_init(context, swapchain)))
     {
         heap_free(context_gl);
         return NULL;




More information about the wine-cvs mailing list