Some improvements in d3d9::Texture class (resource correctness test, using implicite object namespace).
Release d3d9 texture, only when it was loaded properly.