wined3d: Don't load the draw_binding location in surface_unmap() unless the surface...
authorHenri Verbeet <hverbeet@codeweavers.com>
Thu, 19 Jan 2012 23:36:26 +0000 (00:36 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 20 Jan 2012 12:31:17 +0000 (13:31 +0100)
commit8692ff48a953f368860967c1141ec875adba9aaf
treed75a01e669903e4f2e035dadc62d8700c293956d
parentd1254eddb598ad2a6bddaf09ddb5d73247d460cc
wined3d: Don't load the draw_binding location in surface_unmap() unless the surface is on a swapchain.

It really makes no sense to do this just because a surface happens to be the
current render target. In particular, this patch prevents needlessly bouncing
the surface between the CPU and the GPU when the application does e.g.
multiple colorkeyed blits to the current render target to draw a HUD.
dlls/wined3d/surface.c