wined3d: Use the texture dimension helpers in draw_textured_quad().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-04-17 19:07:52 +02:00 committed by Alexandre Julliard
parent 38d35c29ce
commit 2f386e7e49
1 changed files with 3 additions and 1 deletions

View File

@ -289,7 +289,9 @@ void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3
struct wined3d_texture *texture = src_surface->container;
struct blt_info info;
surface_get_blt_info(src_surface->texture_target, src_rect, src_surface->pow2Width, src_surface->pow2Height, &info);
surface_get_blt_info(src_surface->texture_target, src_rect,
wined3d_texture_get_level_pow2_width(texture, src_surface->texture_level),
wined3d_texture_get_level_pow2_height(texture, src_surface->texture_level), &info);
gl_info->gl_ops.gl.p_glEnable(info.bind_target);
checkGLcall("glEnable(bind_target)");