mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue