Commit 89a781ad authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Create surfaces with the correct mip level in device_parent_create_texture_surface().

parent 98652ec1
......@@ -5348,7 +5348,7 @@ static HRESULT CDECL device_parent_create_texture_surface(struct wined3d_device_
}
/* FIXME: Validate that format, usage, pool, etc. really make sense. */
if (FAILED(hr = ddraw_create_surface(ddraw, &desc, &ddraw_surface, 0, tex_root->version)))
if (FAILED(hr = ddraw_create_surface(ddraw, &desc, &ddraw_surface, level, tex_root->version)))
return hr;
done:
......
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