[PATCH 6/8] wined3d: Get resource info from the texture in surface_convert_depth_to_float().
Henri Verbeet
hverbeet at codeweavers.com
Mon Mar 14 11:02:16 CDT 2016
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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)
{
--
2.1.4
More information about the wine-patches
mailing list