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 :)
delete[] direct3d vertex buffer memory?
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]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement