Am Samstag 14 Oktober 2006 20:53 schrieb Ivan Gyurdiev:
H. Verbeet wrote:
On 14/10/06, Ivan Gyurdiev ivg231@gmail.com wrote:
Exactly... so why is the refcount 1 *after* GetVertexDeclaration.
Perhaps the declaration in only generated when calling GetVertexDeclaration(). If you call it twice, does it return the same pointer?
No.. I tried that too. The same pointer is returned.
Perhaps windows has a static internal vertex declaration? Does the refcount increase when you call GetVertexDeclaration more often?