Henri Verbeet : wined3d: Get resource info from the texture in context_setup_target().
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 7 08:50:37 CST 2016
Module: wine
Branch: master
Commit: 34968bb2d80455348e52b9257d46c61a41e8ec7d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=34968bb2d80455348e52b9257d46c61a41e8ec7d
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sun Mar 6 20:59:45 2016 +0100
wined3d: Get resource info from the texture in context_setup_target().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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)
{
More information about the wine-cvs
mailing list