Henri Verbeet : wined3d: Get resource info from the texture in context_create().
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 4 09:48:33 CST 2016
Module: wine
Branch: master
Commit: 6b2567e42c91af0327db9446430eadf1b506a355
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b2567e42c91af0327db9446430eadf1b506a355
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Mar 4 00:05:22 2016 +0100
wined3d: Get resource info from the texture in context_create().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index f810706..9c8deeb 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1659,7 +1659,7 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
}
}
- color_format = target->resource.format;
+ color_format = target->container->resource.format;
/* In case of ORM_BACKBUFFER, make sure to request an alpha component for
* X4R4G4B4/X8R8G8B8 as we might need it for the backbuffer. */
More information about the wine-cvs
mailing list