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

This commit is contained in:
Henri Verbeet 2012-07-15 15:44:57 +02:00 committed by Alexandre Julliard
parent 98652ec1c6
commit 89a781adc9
1 changed files with 1 additions and 1 deletions

View File

@ -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: