Fixes Texture2D.GetData to consider row pitch on DirectX versions.

Fixes Texture2D.GetData to consider row pitch on DirectX versions.