wined3d: Avoid surface_from_resource() in device_load_logo().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Henri Verbeet 2016-03-31 22:48:49 +02:00 committed by Alexandre Julliard
parent f820c09428
commit 0abb6b948e
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ static void device_load_logo(struct wined3d_device *device, const char *filename
struct wined3d_surface *surface;
/* Fill the surface with a white color to show that wined3d is there */
surface = surface_from_resource(wined3d_texture_get_sub_resource(device->logo_texture, 0));
surface = device->logo_texture->sub_resources[0].u.surface;
surface_color_fill(surface, &rect, &c);
}