delete[] direct3d vertex buffer memory?

Started by
11 comments, last by sirlemonhead 15 years, 9 months ago
Ok, I got by confused by him saying that the memory will be released when I unlock. Did he mean to say it'll be released (ie freed) when I do a ->Release() on my Vertex Buffer?

Cheers guy :)
Advertisement
Quote:memory will be released when I unlock. Did he mean to say it'll be released (ie freed) when I do a ->Release() on my Vertex Buffer?

Release is not the same as free or delete! Don't confuse the terms.

Yes, the memory will be "disposed" of by DirectX when you're done with the VB and release it. Not when you Unlock the VB, but when you Release the VB.

EDIT: It probably does sound confusing - but the idea is that DirectX will take care of the memory for you, provided you Release anything you Create when you're done with it.

Are you sufficiently confused yet? [smile]

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Nope, I have it now, thanks :) I'll sort you guys out with some positive rep

This topic is closed to new replies.

Advertisement