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:
parent
1bd60414c8
commit
34968bb2d8
|
@ -3426,8 +3426,8 @@ static void context_setup_target(struct wined3d_context *context, struct wined3d
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const struct wined3d_format *old = context->current_rt->resource.format;
|
const struct wined3d_format *old = context->current_rt->container->resource.format;
|
||||||
const struct wined3d_format *new = target->resource.format;
|
const struct wined3d_format *new = target->container->resource.format;
|
||||||
|
|
||||||
if (old->id != new->id)
|
if (old->id != new->id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue