mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +01:00
[dxgi] Remove Output reference from DxgiSwapChain
This commit is contained in:
parent
c88170966f
commit
3c6eb91c63
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user