D3D: Make the swapchain available outside of the namespace.

This commit reverts a part of pull request #579.
This commit is contained in:
Jules Blok 2014-07-11 17:08:10 +02:00
parent 643c9ff173
commit 5f04e9c526
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ namespace D3D
ID3D11Device* device = nullptr;
ID3D11DeviceContext* context = nullptr;
static IDXGISwapChain* swapchain = nullptr;
IDXGISwapChain* swapchain = nullptr;
D3D_FEATURE_LEVEL featlevel;
D3DTexture2D* backbuf = nullptr;
HWND hWnd;

View File

@ -40,6 +40,7 @@ void Close();
extern ID3D11Device* device;
extern ID3D11DeviceContext* context;
extern IDXGISwapChain* swapchain;
extern HWND hWnd;
extern bool bFrameInProgress;