<div dir="ltr">All the changes have been made, and the patches are being sent to wine-devel as we speak.<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 5, 2015 at 4:26 PM, Stefan Dösinger <span dir="ltr"><<a href="mailto:stefandoesinger@gmail.com" target="_blank">stefandoesinger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Patch 7:<br>
> +    if (!(desc.ddsCaps.dwCaps & DDSCAPS_3DDEVICE))<br>
> +        return DDERR_INVALIDCAPS;<br>
Do you need an explicit check for this? I imagine that IDirect3D2::CreateDevice or IDirectDrawSurface::QueryInterface(&IID_IDirect3DDevice) take care of this task for you.<br></blockquote><div>If I remove this check, wine will return me DDERR_CANNOTATTACHSURFACE in the tests. That means it refuses to attach a depth surface to the render target unless the render target itself contains DDSCAPS_3DDEVICE flag. Is this the correct behavior for ddraw? If yes then I guess d3drm does check this explicitly, as the tests reveal. <br><br><br></div><div>Thanks!<br></div><div>Jam<br></div></div><br></div></div>