wined3d: Fix "sysmem_count" accounting in wined3d_texture_invalidate_location().
commit0726d7e82f9ea8023e97539ba95e33577f8824f2
authorHenri Verbeet <hverbeet@codeweavers.com>
Thu, 25 May 2017 10:04:02 +0000 (25 12:04 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 25 May 2017 18:47:45 +0000 (25 20:47 +0200)
treebffa33f715de671dea0416f1dcaadba09d2d516e
parentef32f7eb204f2181b56ba41923ba788a5b7d5ff1
wined3d: Fix "sysmem_count" accounting in wined3d_texture_invalidate_location().

Only increase it if the sub-resource wasn't already exclusively in system
memory.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/texture.c