Module: wine Branch: master Commit: 38d35c29cef71a17960f5842ef11871a6f116b5f URL: http://source.winehq.org/git/wine.git/?a=commit;h=38d35c29cef71a17960f5842ef...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Apr 17 19:07:51 2016 +0200
wined3d: Use the texture dimension helpers in surface_get_drawable_size().
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index e5bc4d4..cba70a4 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -122,8 +122,8 @@ void surface_get_drawable_size(const struct wined3d_surface *surface, const stru /* The drawable size of an FBO target is the OpenGL texture size, * which is the power of two size. */ rt = context->current_rt.texture->sub_resources[context->current_rt.sub_resource_idx].u.surface; - *width = rt->pow2Width; - *height = rt->pow2Height; + *width = wined3d_texture_get_level_pow2_width(rt->container, rt->texture_level); + *height = wined3d_texture_get_level_pow2_height(rt->container, rt->texture_level); } }