title: D3D11 Freezes Windows Present
body: <p>When using D3D11 encountered a problem with an empty call context-> Present (0,0); OK. And if it goes before the draw, drawindexed ..., reezes windows completely.</p>
  
  <p>Errors and warnings are missing in the assembly and execution.</p>
  
  <pre><code>GContext-&gt;VSSetShader(mVS-&gt;GetVertexShader(), NULL, 0);
  GContext-&gt;PSSetShader(mPS-&gt;GetPixelShader(), NULL, 0); 
  GContext-&gt;IASetIndexBuffer(NULL, DXGI_FORMAT_UNKNOWN, 0);
  GContext-&gt;IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); GContext-&gt;Draw(3, 0); 
  mSwapChain-&gt;Present(0, 0); 
  </code></pre>