wined3d: Get resource info from the texture in surface_convert_depth_to_float().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-14 17:02:16 +01:00 committed by Alexandre Julliard
parent f04448500d
commit ef8162751e
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{