Commit 8aa11375 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use the texture resource in wined3d_surface_depth_fill().

parent 4f2110b0
......@@ -1102,7 +1102,7 @@ static BOOL surface_convert_depth_to_float(const struct wined3d_surface *surface
static HRESULT wined3d_surface_depth_fill(struct wined3d_surface *surface, const RECT *rect, float depth)
{
const struct wined3d_resource *resource = &surface->resource;
const struct wined3d_resource *resource = &surface->container->resource;
struct wined3d_device *device = resource->device;
const struct blit_shader *blitter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment