Results 1 to 2 of 2

Thread: Problem with managed textures and Reset()

  1. #1

    Problem with managed textures and Reset()

    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?
    Ask me about the xcess game development kit

  2. #2

    Problem with managed textures and Reset()

    Okay, please ignore this thread.
    I didn't know that you have to re-set RenderStates, too.

    Works fine now.
    Ask me about the xcess game development kit

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •