wined3d: Fix subtraction of resource size from used adapter memory.

Properly negate an unsigned value while promoting it from 32- to 64-bit.
This commit is contained in:
Ken Thomases 2014-10-16 22:03:22 -05:00 committed by Alexandre Julliard
parent bb23664ee9
commit bd460bca1c
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ void resource_cleanup(struct wined3d_resource *resource)
if (resource->pool == WINED3D_POOL_DEFAULT && d3d->flags & WINED3D_VIDMEM_ACCOUNTING)
{
TRACE("Decrementing device memory pool by %u.\n", resource->size);
adapter_adjust_memory(resource->device->adapter, 0 - resource->size);
adapter_adjust_memory(resource->device->adapter, (INT64)0 - resource->size);
}
wined3d_resource_free_sysmem(resource);