Update Texture2D.cs

Simpy modified the #ifs, because it works perfectly under DirectX 11 version