mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue