Fixed null Texture bug.
* Added a dispose method to TextureType, that unsets the cached texture. Called by the resource manager when it is disposed.