libobs-d3d11: Store device adapter index (for rebuilding)

This commit is contained in:
jp9000
2016-11-03 07:10:58 -07:00
parent 6d18ae39c5
commit e4900751c3
2 changed files with 3 additions and 0 deletions

View File

@@ -625,6 +625,7 @@ struct gs_device {
ComPtr<IDXGIAdapter1> adapter;
ComPtr<ID3D11Device> device;
ComPtr<ID3D11DeviceContext> context;
uint32_t adpIdx = 0;
gs_texture_2d *curRenderTarget = nullptr;
gs_zstencil_buffer *curZStencilBuffer = nullptr;