wined3d: Get resource info from the texture in surface_depth_blt_fbo().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fcbe8b7a79
commit
77aa34099c
|
@ -633,15 +633,15 @@ static void surface_depth_blt_fbo(const struct wined3d_device *device,
|
||||||
if (src_mask != dst_mask)
|
if (src_mask != dst_mask)
|
||||||
{
|
{
|
||||||
ERR("Incompatible formats %s and %s.\n",
|
ERR("Incompatible formats %s and %s.\n",
|
||||||
debug_d3dformat(src_surface->resource.format->id),
|
debug_d3dformat(src_surface->container->resource.format->id),
|
||||||
debug_d3dformat(dst_surface->resource.format->id));
|
debug_d3dformat(dst_surface->container->resource.format->id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!src_mask)
|
if (!src_mask)
|
||||||
{
|
{
|
||||||
ERR("Not a depth / stencil format: %s.\n",
|
ERR("Not a depth / stencil format: %s.\n",
|
||||||
debug_d3dformat(src_surface->resource.format->id));
|
debug_d3dformat(src_surface->container->resource.format->id));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue