Henri Verbeet : wined3d: Create the logo texture with WINED3D_TEXTURE_CREATE_GET_DC.
Alexandre Julliard
julliard at winehq.org
Wed Mar 29 15:02:50 CDT 2017
Module: wine
Branch: master
Commit: b5da9ea38294d9bae124291eef2c61de5005d851
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5da9ea38294d9bae124291eef2c61de5005d851
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Mar 28 23:37:35 2017 +0200
wined3d: Create the logo texture with WINED3D_TEXTURE_CREATE_GET_DC.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index b058d45..4f8faa1 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -575,7 +575,8 @@ static void device_load_logo(struct wined3d_device *device, const char *filename
desc.height = bm.bmHeight;
desc.depth = 1;
desc.size = 0;
- if (FAILED(hr = wined3d_texture_create(device, &desc, 1, 1, WINED3D_TEXTURE_CREATE_MAPPABLE,
+ if (FAILED(hr = wined3d_texture_create(device, &desc, 1, 1,
+ WINED3D_TEXTURE_CREATE_MAPPABLE | WINED3D_TEXTURE_CREATE_GET_DC,
NULL, NULL, &wined3d_null_parent_ops, &device->logo_texture)))
{
ERR("Wine logo requested, but failed to create texture, hr %#x.\n", hr);
More information about the wine-cvs
mailing list