wined3d: Create the logo texture with WINED3D_TEXTURE_CREATE_GET_DC.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
291ffdd7ff
commit
b5da9ea382
|
@ -575,7 +575,8 @@ static void device_load_logo(struct wined3d_device *device, const char *filename
|
||||||
desc.height = bm.bmHeight;
|
desc.height = bm.bmHeight;
|
||||||
desc.depth = 1;
|
desc.depth = 1;
|
||||||
desc.size = 0;
|
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)))
|
NULL, NULL, &wined3d_null_parent_ops, &device->logo_texture)))
|
||||||
{
|
{
|
||||||
ERR("Wine logo requested, but failed to create texture, hr %#x.\n", hr);
|
ERR("Wine logo requested, but failed to create texture, hr %#x.\n", hr);
|
||||||
|
|
Loading…
Reference in New Issue