wined3d: Get resource info from the texture in context_create().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-04 00:05:22 +01:00 committed by Alexandre Julliard
parent 193ca794fc
commit 6b2567e42c
1 changed files with 1 additions and 1 deletions

View File

@ -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. */