wined3d: Get resource info from the texture in context_setup_target().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-06 20:59:45 +01:00 committed by Alexandre Julliard
parent 1bd60414c8
commit 34968bb2d8

View file

@ -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)
{