title: Probleme with LoadRawTextureData and get white texture with random dot color
body: <p>i got a probleme i try to load a texture with LoadRawTextureData, ingame i see white texture with random color dot</p>
  
  <p><a href="https://i.stack.imgur.com/9Nx6s.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Nx6s.jpg" alt="Screenshot of the buggy texture"></a></p>
  
  <pre><code>byte[] temp = File.ReadAllBytes(@"C:\Users\XXXX\Desktop\ds\Export\Texture2D\Deck_noLabel 2.png");
              int headerSize = 8;
              byte[] buffer = new byte[temp.Length - headerSize];
              System.Buffer.BlockCopy(temp, headerSize, buffer, 0, temp.Length - headerSize);
              Texture2D tex = new Texture2D(2048, 2048, TextureFormat.DXT1, false);
              tex.LoadRawTextureData(buffer);
              tex.Apply();
              GameObject.Find("GripTape").GetComponent&lt;Renderer&gt;().material.SetTexture("Texture2D_4128E5C7", tex);
  </code></pre>