View Full Version : Problem with managed textures and Reset()

Harry Hunt
01-05-2003, 12:30 PM
Hi there!
I wrote a visual Delphi component that renders .X and .MD2 files using Direct3D. I create all textures with D3DXCreateTextureFromFileExA and the Pool paramter set to D3DPOOL_MANAGED.
The DirectX SDK documentation says that a texture created with the pool parameter set to D3DPOOL_MANAGED survives a D3DDevice.Reset() call.
Well, whenever my component is resized, I call the Reset() method of my Direct3DDevice to adjust the back-buffer but when doing that I lose all my textures and they can't be restored manually either.
I'm not sure what I'm doing wrong... I'm pretty sure it's soemthing very stupid.
Any ideas?

Harry Hunt
01-05-2003, 12:36 PM
Okay, please ignore this thread.
I didn't know that you have to re-set RenderStates, too.

Works fine now. :P