http://bugs.winehq.org/show_bug.cgi?id=8051
--- Comment #29 from Stefan Dösinger stefandoesinger@gmx.at 2007-12-19 18:53:15 --- I guess you're free to re-use the old surface or recreate it, but watch out for the size. If the resolution changed you'll have to change the depth stencil surface size as well. Either by recreating it, or by changing the surface like it happens with the render targets.
Actually, I think it is better to just adjust the members in the surface, otherwise you'll have to take care for re-creating the d3d8 and d3d9 surface as well, not just the wined3d one.
You could extend the test to see what happens if you have any other surface in D3DPOOL_DEFAULT. I think some MSDN page says that the application must release all surfaces in D3DPOOL_DEFAULT(and depth stencil and render targets are in that pool).