title: E_FAIL D3D11CreateDevice
body: <pre><code>ID3D11Device* md3dDevice;
  ID3D11DeviceContext* md3dImmediateContext;
  D3D_DRIVER_TYPE md3dDriverType = D3D_DRIVER_TYPE_HARDWARE;
  HRESULT hr = D3D11CreateDevice(
              0,                 
              md3dDriverType,
              0,                 
              D3D11_CREATE_DEVICE_DEBUG, 
              0, 0,              
              D3D11_SDK_VERSION,
              &amp;md3dDevice,
              &amp;featureLevel,
              &amp;md3dImmediateContext);ID3D11Device* md3dDevice;
  </code></pre>
  
  <p>I am getting an e_fail from this function when I include the D3D11_CREATE_DEVICE_DEBUG flag (works fine without flag). I assumed this had something to do with my debug runtime so I reinstalled the dx sdk as per the instructions in this thread: <a href="https://stackoverflow.com/questions/10586956/what-can-cause-d3d11createdevice-to-fail-with-e-fail">What can cause D3D11CreateDevice() to fail with E_FAIL?</a> It did not solve the problem though. </p>
  
  <p>I am also still seeing zero debug levels in dxdiag:</p>
  
  <pre><code>--------------------
  DirectX Debug Levels
  --------------------
  Direct3D:    0/4 (retail)
  DirectDraw:  0/4 (retail)
  DirectInput: 0/5 (retail)
  DirectMusic: 0/5 (retail)
  DirectPlay:  0/9 (retail)
  DirectSound: 0/5 (retail)
  DirectShow:  0/6 (retail)
  </code></pre>
  
  <p>Any help would be appreciated.</p>