|

楼主 |
发表于 2004-5-22 01:51:00
|
显示全部楼层
Re: Re:hmhm的D3D白痴问题一罗筐
tiamo: Re:hmhm的D3D白痴问题一罗筐
这个。。。。。
在你调用setIndices的时候d3d调用了你的index buffer的addRef函数增加了一个引用技术。。...
完全了解。非常感谢tiamo。
“This method increments the reference count of the index buffer being assigned and decrements the reference count of the previously assigned index buffer.When the index buffer is no longer needed, set it to NULL. If you fail to do this, the index buffer is not released, resulting in a memory leak”
原话是这样的。我只看到了后一句,却没仔细看前一句。它提到setIndices方法会增加index buffer的引用引数,我却没有仔细的阅读,实在是惭愧之极。
[em5] [em5] [em5] [em5] [em5]
再次感谢给予我帮助的朋友们。
|
|