From ef8162751eb03ef6a4abb54bd908fa9893025a41 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 14 Mar 2016 17:02:16 +0100 Subject: [PATCH] wined3d: Get resource info from the texture in surface_convert_depth_to_float(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 3f90592516a..d06f1ebc123 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -884,7 +884,7 @@ static BOOL fbo_blit_supported(const struct wined3d_gl_info *gl_info, enum wined static BOOL surface_convert_depth_to_float(const struct wined3d_surface *surface, DWORD depth, float *float_depth) { - const struct wined3d_format *format = surface->resource.format; + const struct wined3d_format *format = surface->container->resource.format; switch (format->id) {