wined3d: Don't allow blits with an invalid destination rectangle when a clipper is...
authorHenri Verbeet <hverbeet@codeweavers.com>
Sun, 21 Aug 2011 19:34:55 +0000 (21:34 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 22 Aug 2011 14:14:36 +0000 (16:14 +0200)
commite1ab5f6e6bf251566289ccf3177ebaf8102cb72b
tree46f7da10458647a5be0116315f55a8bf7680ef0a
parentf8ce77a5986ce0648dc6cbaef77ddf6828ea1e3e
wined3d: Don't allow blits with an invalid destination rectangle when a clipper is set either.

Clippers don't really work. Previously we mostly didn't run into this because
the rectangle was already rejected by ddraw_surface7_Blt(), although
ddraw_surface7_BltFast() might have been affected in a couple of cases. We
should of course implement clippers, but until that happens, completely
rejecting the blit is better than introducing memory corruption.

This fixes a regression introduced by commit
92e616f355ded5f3634625dba245e9b437e3ad6a.
dlls/wined3d/surface.c