<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 26, 2015 at 2:32 AM, 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"><span class="">
</span>Minor issue: I don't think there's a reason to destroy and recreate the surface.<br>
</blockquote><div>The other way afaik is to QI surface version >= 3 and then call SetSurfaceDesc. This seemed easier to do so. Is there some other way? <br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> +    IDirectDrawSurface_Release(d3drm_ds);<br>
> +    IDirectDrawSurface_Release(d3drm_surface);<br>
> +    IDirectDrawSurface_Release(ds);<br>
</span>What happens to the depth buffer here? Does it remain attached?<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div> <br></div><div>At this point (after releasing ds) the refcounts of both ds and render target (i.e. surface) become 1.<br></div></div></div></div>