public static ESTexture2D InitiFromDxt3File(BinaryReader rdr, int length, int width, int height)
{
byte [] b = GetBits (width, length, height, rdr);
// Copy bits
IntPtr pointer = Marshal.AllocHGlobal(length);
Marshal.Copy (b, 0, pointer, length);
ESTexture2D result = new ESTexture2D(pointer,SurfaceFormat.Dxt3,width,height,new Size(width,height),All.Linear);
Marshal.FreeHGlobal(pointer);
return result;
}