• Advertisement
Sign in to follow this  

[SlimDX] Reverting setting a custome effect state manager?

This topic is 2411 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

Hi everyone,

I'm trying to use a custom state manager for a DirectX 9 effect. At one point I wanted to unregister my custom state manager and have the effect use its own default behavior again and so I tried to set the property to nullptr. Thing is that an IEffectStateManagerShim object is created by SlimDX which wraps the null pointer and the next call the effect does will cause an exception. So I modified Effect::SetStateManager to instead call InternalPointer->SetStateManager( NULL ) but this also seems to crash...

Soooo, anyone got any experience with using custom state managers? How can one revert the effects of setting a custom state manager?


Update 07/19/2011: In case anyone runs into the same problem, it seems to be caused by a bug in the SlimDX effect9 set manager method. Submitted as bug #815 to SlimDX.

Share this post

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

  • Advertisement