Henri Verbeet : wined3d: Do not set WINED3D_TEXTURE_CREATE_MAPPABLE on the logo texture.
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 16:20:12 CST 2018
Module: wine
Branch: master
Commit: e5a6861d3a4382835ed1176a8224934c73eee159
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e5a6861d3a4382835ed1176a8224934c73eee159
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Nov 26 22:28:13 2018 +0330
wined3d: Do not set WINED3D_TEXTURE_CREATE_MAPPABLE on the logo texture.
We never map it.
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, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index a89a33d..7cb32a6 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -582,8 +582,7 @@ 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 | WINED3D_TEXTURE_CREATE_GET_DC,
+ if (FAILED(hr = wined3d_texture_create(device, &desc, 1, 1, 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