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:
parent
2b40957a1a
commit
ab1ae26520
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue