wined3d: Get resource info from the texture in wined3d_device_set_cursor_properties().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
34968bb2d8
commit
1e78dd3197
|
@ -4296,10 +4296,10 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
|
||||||
device->cursor_texture = NULL;
|
device->cursor_texture = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cursor_image->resource.format->id != WINED3DFMT_B8G8R8A8_UNORM)
|
if (texture->resource.format->id != WINED3DFMT_B8G8R8A8_UNORM)
|
||||||
{
|
{
|
||||||
WARN("Surface %p has an invalid format %s.\n",
|
WARN("Texture %p has invalid format %s.\n",
|
||||||
cursor_image, debug_d3dformat(cursor_image->resource.format->id));
|
texture, debug_d3dformat(texture->resource.format->id));
|
||||||
return WINED3DERR_INVALIDCALL;
|
return WINED3DERR_INVALIDCALL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue