• Advertisement
Sign in to follow this  

__vfptr and UpdateSubresource

This topic is 1760 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm currently trying to refactor a piece of code to load an MD5 model, during the render part of the code my UpdateSubresource takes in the first Parameters cbPerObjectBuffer (constant buffer per object buffer). unfortunately  __vfptr seems be holding the wrong/none of the values it should be

 

		deviceContext->UpdateSubresource( cbPerObjectBuffer, 0, NULL, &m_cbPerObj, 0, 0 );

 

 

This is what I get

errorbp.png

 

This is what I should be getting

 

fixg.png

 

Can anyone tell me how to get values for __vfptr?

Share this post


Link to post
Share on other sites
Advertisement

Your "cbPerObjectBuffer" pointer is bogus. Just look at the value: it's 0xcdcdcdcd, which is a scribble pattern used by VC++ to initialize memory allocated from the heap. In other words, you never initialized that pointer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement