[PATCH 1/6] wined3d: Avoid surface_from_resource() in device_load_logo().

Henri Verbeet hverbeet at codeweavers.com
Thu Mar 31 15:48:49 CDT 2016


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 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);
     }
 
-- 
2.1.4




More information about the wine-patches mailing list