[PATCH 3/9] wined3d: Use the texture dimension helpers in surface_depth_blt().
Henri Verbeet
hverbeet at codeweavers.com
Tue Apr 19 11:34:04 CDT 2016
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/wined3d/surface.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 4babf33..72233bd 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2561,7 +2561,9 @@ static void surface_depth_blt(const struct wined3d_surface *surface, struct wine
gl_info->gl_ops.gl.p_glDepthRange(0.0, 1.0);
SetRect(&rect, 0, h, w, 0);
- surface_get_blt_info(target, &rect, surface->pow2Width, surface->pow2Height, &info);
+ surface_get_blt_info(target, &rect,
+ wined3d_texture_get_level_pow2_width(surface->container, surface->texture_level),
+ wined3d_texture_get_level_pow2_height(surface->container, surface->texture_level), &info);
context_active_texture(context, context->gl_info, 0);
gl_info->gl_ops.gl.p_glGetIntegerv(info.binding, &old_binding);
gl_info->gl_ops.gl.p_glBindTexture(info.bind_target, texture);
--
2.1.4
More information about the wine-patches
mailing list