Am 09.11.2011 14:42, schrieb Matteo Bruni:
2011/11/9 David Adam:
Better, but there are still issues:
+if( polygon ) polygon->lpVtbl->Release(polygon);
+if( ppBuffer ) ID3DXBuffer_Release(ppBuffer);
You aren't setting those pointers to NULL (and your test shows that
D3DXCreatePolygon doe
2011/11/9 David Adam :
>
Better, but there are still issues:
+if( polygon ) polygon->lpVtbl->Release(polygon);
+if( ppBuffer ) ID3DXBuffer_Release(ppBuffer);
You aren't setting those pointers to NULL (and your test shows that
D3DXCreatePolygon doesn't touch them when the call fails), so