Commit 70f1d0ef authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent a4fa7024
......@@ -1345,9 +1345,10 @@ static void texture2d_prepare_texture(struct wined3d_texture *texture, struct wi
for (i = 0; i < sub_count; ++i)
{
struct wined3d_surface *surface = texture->sub_resources[i].u.surface;
GLsizei height = surface->pow2Height;
GLsizei width = surface->pow2Width;
GLsizei width, height;
width = wined3d_texture_get_level_pow2_width(texture, surface->texture_level);
height = wined3d_texture_get_level_pow2_height(texture, surface->texture_level);
if (texture->resource.format_flags & WINED3DFMT_FLAG_HEIGHT_SCALE)
{
height *= format->height_scale.numerator;
......
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