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

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-24 18:24:27 +01:00 committed by Alexandre Julliard
parent 5bf5bc2784
commit 484f5f1ec5
1 changed files with 1 additions and 1 deletions

View File

@ -2956,7 +2956,7 @@ static DWORD resource_access_from_location(DWORD location)
static void surface_copy_simple_location(struct wined3d_surface *surface, DWORD location)
{
struct wined3d_device *device = surface->resource.device;
struct wined3d_device *device = surface->container->resource.device;
struct wined3d_context *context;
const struct wined3d_gl_info *gl_info;
struct wined3d_bo_address dst, src;