From 6b2567e42c91af0327db9446430eadf1b506a355 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 4 Mar 2016 00:05:22 +0100 Subject: [PATCH] wined3d: Get resource info from the texture in context_create(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- 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 f810706f6ff..9c8deebff44 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. */