[dxgi] Remove Output reference from DxgiSwapChain

This commit is contained in:
Philip Rebohle 2018-04-12 01:28:44 +02:00
parent c88170966f
commit 3c6eb91c63
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 3 additions and 6 deletions

View File

@ -388,15 +388,13 @@ namespace dxvk {
HRESULT DxgiSwapChain::EnterFullscreenMode(IDXGIOutput *pTarget) {
m_output = static_cast<DxgiOutput*>(pTarget);
Com<IDXGIOutput> output = static_cast<DxgiOutput*>(pTarget);
if (m_output == nullptr) {
Com<IDXGIOutput> output;
if (output == nullptr) {
if (FAILED(GetContainingOutput(&output))) {
Logger::err("DxgiSwapChain: Failed to enter fullscreen mode: Cannot query containing output");
return E_FAIL;
}
m_output = static_cast<DxgiOutput*>(output.ptr());
}
// Update swap chain description
@ -420,7 +418,7 @@ namespace dxvk {
// Move the window so that it covers the entire output
DXGI_OUTPUT_DESC desc;
m_output->GetDesc(&desc);
output->GetDesc(&desc);
const RECT rect = desc.DesktopCoordinates;

View File

@ -102,7 +102,6 @@ namespace dxvk {
Com<DxgiFactory> m_factory;
Com<DxgiAdapter> m_adapter;
Com<DxgiDevice> m_device;
Com<DxgiOutput> m_output;
Com<IDXGIVkPresenter> m_presentDevice;
DXGI_SWAP_CHAIN_DESC m_desc;