Henri Verbeet : wined3d: Get resource info from the texture in surface_convert_depth_to_float().
Module: wine Branch: master Commit: ef8162751eb03ef6a4abb54bd908fa9893025a41 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ef8162751eb03ef6a4abb54bd9... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Mar 14 17:02:16 2016 +0100 wined3d: Get resource info from the texture in surface_convert_depth_to_float(). Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 3f90592..d06f1eb 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) {
participants (1)
-
Alexandre Julliard