Bug 3467 needs this change.

But I can write a small test. Would writing a test attaching an offscreen surface to another offscreen surface be enough to convince you of the correctness of the change?
Indeed, only Z-buffer surfaces can be attached in version 7 of the metho.

Thanks in advance

A+

David


De : Stefan Dösinger <stefandoesinger@gmx.at>
Ŕ : wine-devel@winehq.org
Envoyé le : Lundi 14 mai 2012 16h53
Objet : Re: ddraw: Forward AddAttachedSurface to the correct equivalent

Am Sonntag, 13. Mai 2012, 20:39:27 schrieb David Adam:
> +    hr = ddraw_surface3_AddAttachedSurface(&This-
>IDirectDrawSurface3_iface,
> +            attachment_impl ? &attachment_impl->IDirectDrawSurface3_iface :
NULL);
It isn't immediately clear to me why Surface3 is correct instead of Surface7.
Do you have tests or bug reports to back this up?