Fixes Texture2D.GetData to consider row pitch.

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