Original Post
Hello,
I have read some of the other posts on this forum regarding this but I dident find anyone that could help me.
So here it goes.
When I toggle from fullscreen to windowed mode, it works perfect.
Untill I use a shader...
If I have loaded a shader, it enters fullscreen and the instantly switches back to windowed.
This problem disappears if I dont load the shader.
This is how I load my shader:
D3DXCreateEffectFromFile(direct3d->device, path.c_str(), 0, 0, 0, 0, &shader, &compilationError);And I simply use the OnLostDevice and OnResetDevice functions when I detect a lost device.