Commit 34968bb2 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 1bd60414
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment