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:
parent
193ca794fc
commit
6b2567e42c
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue