Sign in to follow this  

[SlimDX] Reverting setting a custome effect state manager?

This topic is 2341 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?

Alex

[b]Update 07/19/2011:[/b] 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

This topic is 2341 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this