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:
parent
f04448500d
commit
ef8162751e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue