D3D: Make the global swapchain static again.

This commit is contained in:
Jules Blok
2014-07-26 13:00:49 +02:00
parent 6724ce6275
commit 06b13f12d3
3 changed files with 26 additions and 6 deletions

View File

@ -40,7 +40,6 @@ void Close();
extern ID3D11Device* device;
extern ID3D11DeviceContext* context;
extern IDXGISwapChain* swapchain;
extern HWND hWnd;
extern bool bFrameInProgress;
@ -59,6 +58,9 @@ bool BGRATexturesSupported();
unsigned int GetMaxTextureSize();
HRESULT SetFullscreenState(bool enable_fullscreen);
HRESULT GetFullscreenState(bool* fullscreen_state);
// Ihis function will assign a name to the given resource.
// The DirectX debug layer will make it easier to identify resources that way,
// e.g. when listing up all resources who have unreleased references.