From 5f04e9c52603da6c29706b706a85e5af95360ba1 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Fri, 11 Jul 2014 17:08:10 +0200 Subject: [PATCH] D3D: Make the swapchain available outside of the namespace. This commit reverts a part of pull request #579. --- Source/Core/VideoBackends/D3D/D3DBase.cpp | 2 +- Source/Core/VideoBackends/D3D/D3DBase.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/D3D/D3DBase.cpp b/Source/Core/VideoBackends/D3D/D3DBase.cpp index bdb16db465..945ba19359 100644 --- a/Source/Core/VideoBackends/D3D/D3DBase.cpp +++ b/Source/Core/VideoBackends/D3D/D3DBase.cpp @@ -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; diff --git a/Source/Core/VideoBackends/D3D/D3DBase.h b/Source/Core/VideoBackends/D3D/D3DBase.h index dfea8d219a..0188c464e3 100644 --- a/Source/Core/VideoBackends/D3D/D3DBase.h +++ b/Source/Core/VideoBackends/D3D/D3DBase.h @@ -40,6 +40,7 @@ void Close(); extern ID3D11Device* device; extern ID3D11DeviceContext* context; +extern IDXGISwapChain* swapchain; extern HWND hWnd; extern bool bFrameInProgress;