Hi: I found a weird problem in my application. Everytime I call ID3DXEffect::End(), The device state is lost, including texture ptr, vertex shader and pixel shader. All of them is set to zero. Is there anyone knows why?
It seems the device state is automatically reset by the d3dx system. But I tried setting D3DXFX_DONOTSAVESTATE|D3DXFX_DONOTSAVESAMPLERSTATE|D3DXFX_DONOTSAVESHADERSTATE when creating the effect, the behavior is still the same.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more