Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 15 Feb 2012
Offline Last Active Mar 02 2012 09:04 AM

Topics I've Started

Texture release problem

15 February 2012 - 05:01 AM


I'm writing a directx 9 renderer and I've run into this problem: when a IDirect3D9Texture9 object is bound to an ID3DXEffect with SetTexture and the context is lost after a device reset, I can't release the texture successfully. Some unreleased memory block still stay and I can't reset the device. However, if I set the texture to NULL, I'm able to release it and everything works fine.

Is this a known thing, or I'm doing something horrible?

Thanks in advance!