Re: d3dx9: Implement D3DXCreatePolygon
1 Apr
2012
1 Apr
'12
9:24 p.m.
On Sun, Apr 1, 2012 at 10:43 PM, David Adam <david.adam.cnrs(a)gmail.com> wrote:
+ *mesh = polygon; + + if (adjacency) + { + hr = D3DXCreateBuffer(3 * sides * sizeof(DWORD), &adjacency_tmp); + if (FAILED(hr)) return hr;
You should release the polygon mesh. Also, you probably shouldn't touch *mesh when the function fails. -- Józef Kucia
5004
Age (days ago)
5004
Last active (days ago)
0 comments
1 participants
participants (1)
-
Józef Kucia