Commit bd460bca authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

Properly negate an unsigned value while promoting it from 32- to 64-bit.
parent bb23664e
......@@ -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);
......
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