Commit a138460f authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent c2900cd8
......@@ -277,10 +277,12 @@ static void surface_get_rect(const struct wined3d_surface *surface, const RECT *
*rect_out = *rect_in;
else
{
const struct wined3d_texture *texture = surface->container;
rect_out->left = 0;
rect_out->top = 0;
rect_out->right = surface->resource.width;
rect_out->bottom = surface->resource.height;
rect_out->right = wined3d_texture_get_level_width(texture, surface->texture_level);
rect_out->bottom = wined3d_texture_get_level_height(texture, surface->texture_level);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment