title: E_INVALIDARG when creating texture2d from DDS dxt5 compressed
body: <p>Doing all work about processing from <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb943991%28v=vs.85%29.aspx" rel="nofollow">this article</a>.</p>
  
  <p>Detect headers,get pitch from this formula:</p>
  
  <pre><code>max( 1, ((width+3)/4) ) * block-size  (block-size == 16)
  </code></pre>
  
  <p>then trying to <code>CreateTexture2D( &amp;texDesc, resData, &amp;texture );</code></p>
  
  <p>I filled all fields from header. But always get <code>E_INVALIDARG</code>.
  Can't find out my problem.</p>