mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:01:17 +00:00
wined3d: Add a missing TRACE to wined3d_texture_unmap().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8cc557a705
commit
b0f267ae9d
|
@ -1536,9 +1536,11 @@ HRESULT CDECL wined3d_texture_map(struct wined3d_texture *texture, unsigned int
|
|||
|
||||
HRESULT CDECL wined3d_texture_unmap(struct wined3d_texture *texture, unsigned int sub_resource_idx)
|
||||
{
|
||||
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.\n", texture, sub_resource_idx);
|
||||
|
||||
if (!(sub_resource = wined3d_texture_get_sub_resource(texture, sub_resource_idx)))
|
||||
return WINED3DERR_INVALIDCALL;
|
||||
|
||||
return texture->texture_ops->texture_sub_resource_unmap(sub_resource);
|
||||
|
|
Loading…
Reference in a new issue