<div dir="ltr"><br><br><div class="gmail_quote">On 25 July 2010 14:58, Laurent Aimar <span dir="ltr"><<a href="mailto:fenrir@elivagar.org">fenrir@elivagar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
>  So it seems that you need to check for EndDraw error code and recreate the<br>
> resources when needed. You can see how d3d does it.<br>
</div> d3d will be a bad example as you don't have the same constraints.<br>
I think that you simply need to call D2D_DestroyRenderTarget and<br>
D2D_ResizeRenderTarget.<br>
<br>
 That makes me think that<br>
<div class="im">> info.has_pictures_invalid = true;<br>
</div>in the open function should be changed to<br>
> info.has_pictures_invalid = false;<br>
as in fact you never need to recreate the picture pool.<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div>Will change that.<br>If it's destroyed, we need to call Create again. Resize will fail unless there is a render target and according to the msdn docs, it needs to be recreated. </div>
</div></div>