Commit 8cc557a7 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Add a missing TRACE to wined3d_texture_map().

parent 96dd7937
......@@ -1523,9 +1523,12 @@ HRESULT CDECL wined3d_texture_create(struct wined3d_device *device, const struct
HRESULT CDECL wined3d_texture_map(struct wined3d_texture *texture, unsigned int sub_resource_idx,
struct wined3d_map_desc *map_desc, const struct wined3d_box *box, DWORD flags)
{
struct wined3d_resource *sub_resource = wined3d_texture_get_sub_resource(texture, sub_resource_idx);
struct wined3d_resource *sub_resource;
if (!sub_resource)
TRACE("texture %p, sub_resource_idx %u, map_desc %p, box %p, flags %#x.\n",
texture, sub_resource_idx, map_desc, box, flags);
if (!(sub_resource = wined3d_texture_get_sub_resource(texture, sub_resource_idx)))
return WINED3DERR_INVALIDCALL;
return texture->texture_ops->texture_sub_resource_map(sub_resource, map_desc, box, flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment