Fixed texture displaying + added release of DirectX objects.