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:
Henri Verbeet 2016-03-06 20:59:46 +01:00 committed by Alexandre Julliard
parent 34968bb2d8
commit 1e78dd3197
1 changed files with 3 additions and 3 deletions

View File

@ -4296,10 +4296,10 @@ HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device
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",
cursor_image, debug_d3dformat(cursor_image->resource.format->id));
WARN("Texture %p has invalid format %s.\n",
texture, debug_d3dformat(texture->resource.format->id));
return WINED3DERR_INVALIDCALL;
}