[PATCH 3/9] wined3d: Use the texture dimension helpers in surface_get_drawable_size().

Henri Verbeet hverbeet at codeweavers.com
Sun Apr 17 12:07:51 CDT 2016


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 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);
     }
 }
 
-- 
2.1.4




More information about the wine-patches mailing list