From 34968bb2d80455348e52b9257d46c61a41e8ec7d Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 6 Mar 2016 20:59:45 +0100 Subject: [PATCH] wined3d: Get resource info from the texture in context_setup_target(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 500904d6274..415eedf7b0a 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -3426,8 +3426,8 @@ static void context_setup_target(struct wined3d_context *context, struct wined3d } else { - const struct wined3d_format *old = context->current_rt->resource.format; - const struct wined3d_format *new = target->resource.format; + const struct wined3d_format *old = context->current_rt->container->resource.format; + const struct wined3d_format *new = target->container->resource.format; if (old->id != new->id) {