I wish to reset my IDirect3DDevice9, if its because it is lost or because I want to change window dimensions.
I have created a list with a Device wrap class that release all the interfaces created with that device.
However, when I get to the reset function of IDirect3DDevice9, I get the debug output:
Direct3D9: (ERROR) :All user created stateblocks must be freed before Reset can succeed. Reset Fails.
Direct3D9: (ERROR) :Reset failed and Reset/TestCooperativeLevel/Release are the only legal APIs to be called subsequently
I don't create any StateBlock interface, so why does it tell me I need to free them?
Am I not freeing something? But I called release on all the interfaces I created with this device?
What can it be?
Edit: Sorry to ask for something I discovered a short time later.
But I saw that I needed to also release the ID3DXEffect interface for the reset to work. How come? I thought it doesn't need to be reset.
Device reset and state block?
Started by yakul, Mar 04 2008 01:20 PM
1 reply to this topic
#1
Posted 04 March 2008 - 01:20 PM
#2
Posted 04 March 2008 - 03:23 PM
yakul said:
I saw that I needed to also release the ID3DXEffect interface for the reset to work.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












