Module: wine Branch: master Commit: 0abb6b948ea61d6d98dab2b9dc65d6ae6b0d1013 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0abb6b948ea61d6d98dab2b9dc...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Mar 31 22:48:49 2016 +0200
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
---
dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ef8095f..bda5e43 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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); }