From 0abb6b948ea61d6d98dab2b9dc65d6ae6b0d1013 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 31 Mar 2016 22:48:49 +0200 Subject: [PATCH] wined3d: Avoid surface_from_resource() in device_load_logo(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- 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 ef8095fa649..bda5e43e880 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); }