d3dx9: Use temporary surface in D3DXSaveSurfaceToFileInMemory() for unmappable textures.
commit092c14b9d86ee1e96e465908cc524ec85988d0ff
authorPaul Gofman <gofmanp@gmail.com>
Mon, 14 Jan 2019 20:45:12 +0000 (14 21:45 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 Jan 2019 15:31:43 +0000 (23 16:31 +0100)
treefbdac1f91c5508a5e969f279c29a8e75e162883e
parentce090114340fe6ce9314f543a1389de9bdc6df14
d3dx9: Use temporary surface in D3DXSaveSurfaceToFileInMemory() for unmappable textures.

Fixes a regression triggered by commit
949dbbd31f450178c90ea8267097a975b77c3219.

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3dx9_36/surface.c
dlls/d3dx9_36/tests/surface.c