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

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-16 18:17:00 +01:00 committed by Alexandre Julliard
parent 2b40957a1a
commit ab1ae26520
1 changed files with 1 additions and 1 deletions

View File

@ -1606,7 +1606,7 @@ void surface_load(struct wined3d_surface *surface, struct wined3d_context *conte
TRACE("surface %p, srgb %#x.\n", surface, srgb);
if (surface->resource.pool == WINED3D_POOL_SCRATCH)
if (surface->container->resource.pool == WINED3D_POOL_SCRATCH)
ERR("Not supported on scratch surfaces.\n");
if (surface->locations & location)