<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello<br><br>You should send one patch for one implementation of a function, not one patch for all the functions.<br>Moreover, you should keep the style of the file. The semi-colon ; is placed just after the parenthesis ) not like this: ) ;<br><br>David <br><br>--- En date de&nbsp;: <b>Mer 29.10.08, paulo lesgaz <i>&lt;jeremielapuree@yahoo.fr&gt;</i></b> a écrit&nbsp;:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">De: paulo lesgaz &lt;jeremielapuree@yahoo.fr&gt;<br>Objet: D3DXMatrixstack: where to go....<br>À: "wine-devel" &lt;wine-devel@winehq.org&gt;, "Jérôme Gardou" &lt;jerome.gardou@gmail.com&gt;<br>Date: Mercredi 29 Octobre 2008, 13h18<br><br><div id="yiv1584541403"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant:
 inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">I did several patches about D3DXMAtrixStack. All were uncorrect.<br><br>The idea of Henri to implement it is this one:<br>it is very time -comsumming to allocate or to free memory. So one needs to do that as less as possible.<br><br>So, we start with a stack with predefined size. When the stack is full, one multiplies by 2 its size. When one releases items enough of the stack, one divides its size by 2.<br><br>Here are patches that implemented that idea.<br><br>When looking at your patch, I saw that in my patch, in the D3dxMatrixstackImpl_release function, I do not free the memory of the array of matrix. It should be done.<br><br>In the tests patch, I did not check if d3dxmatrixstackcreate fails. If it fails, tests should be skipped. At the end of the test, I did not call the _Release function. It
 should be done too.<br><br>Maybe, you should use these patches
 and try to improve them.<br><br>All the tests passed on my Windows XP box.<br><br>David<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><pre></pre></blockquote></td></tr></tbody></table><br>



      </div></blockquote></td></tr></table><br>