[PATCH 2/6] wined3d: Get resource info from the texture in wined3d_device_set_cursor_properties().
Henri Verbeet
hverbeet at codeweavers.com
Sun Mar 6 13:59:46 CST 2016
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
dlls/wined3d/device.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index ded1229..a724659 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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;
}
--
2.1.4
More information about the wine-patches
mailing list