[PATCH 5/8] wined3d: Get resource info from the texture in context_create().
Henri Verbeet
hverbeet at codeweavers.com
Thu Mar 3 17:05:22 CST 2016
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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. */
--
2.1.4
More information about the wine-patches
mailing list