[PATCH 1/6] wined3d: Get resource info from the texture in context_setup_target().
Henri Verbeet
hverbeet at codeweavers.com
Sun Mar 6 13:59:45 CST 2016
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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 500904d..415eedf 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)
{
--
2.1.4
More information about the wine-patches
mailing list