开发者

Releasing a vertex/index buffer causes warning

开发者 https://www.devze.com 2022-12-17 04:31 出处:网络
When releasing (Release()) a vertex buffer (ID3D10Buffer / D3D10_BIND_VERTEX_BUFFER) which has been used for rendering in the previous frame I get a warning that the buffer is bound:

When releasing (Release()) a vertex buffer (ID3D10Buffer / D3D10_BIND_VERTEX_BUFFER) which has been used for rendering in the previous frame I get a warning that the buffer is bound:

D3D10: INFO: ID3D10Device::IASetVertexBuffers: A currently bound VertexBuffer is being deleted; so naturally, will no longer be bound. [ STATE_SETTING INFO #31: IASE开发者_StackOverflow社区TVERTEXBUFFERS_UNBINDDELETINGOBJECT ]

Is there a way I can unbind the buffer?

Thanks,

Jakob


Setup NULL buffers using ID3D10Device::IASetVertexBuffers. Or bind another buffer.


Its anyway not a warning, but an info. It does not make ANY difference that you remove or not the buffer from being binded.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号