ddraw: Read the current RTV before flipping any surfaces.
commit3b5dca348e12f65f3a92313f207fc004ab5eb33c
authorZebediah Figura <zfigura@codeweavers.com>
Wed, 22 Nov 2023 23:04:18 +0000 (22 17:04 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 23 Nov 2023 21:51:07 +0000 (23 22:51 +0100)
tree39bc6026bd37a315e3d51fdd857d8befb08ea477
parent192c488a565adbb8c36739ee1a6836cadbd943b6
ddraw: Read the current RTV before flipping any surfaces.

Since we rename one at a time, we will swap the RTV twice otherwise.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54839
Fixes: f103da7c69cc18aaf63f08a752d870b7049d9d20
dlls/ddraw/surface.c
dlls/ddraw/tests/ddraw7.c