mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Another attempted fix for Issue 553.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2533 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
934ec2c0ba
commit
8473436ae4
|
@ -289,9 +289,11 @@ bool GSDevice10::Reset(int w, int h)
|
|||
m_swapchain->ResizeBuffers(scd.BufferCount, w, h, scd.BufferDesc.Format, 0);
|
||||
|
||||
CComPtr<ID3D10Texture2D> backbuffer;
|
||||
m_swapchain->GetBuffer(0, __uuidof(ID3D10Texture2D), (void**)&backbuffer);
|
||||
if(!FAILED(m_swapchain->GetBuffer(0, __uuidof(ID3D10Texture2D), (void**)&backbuffer)))
|
||||
{
|
||||
m_backbuffer = new GSTexture10(backbuffer);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -278,9 +278,11 @@ bool GSDevice11::Reset(int w, int h)
|
|||
m_swapchain->ResizeBuffers(scd.BufferCount, w, h, scd.BufferDesc.Format, 0);
|
||||
|
||||
CComPtr<ID3D11Texture2D> backbuffer;
|
||||
m_swapchain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)&backbuffer);
|
||||
if(!FAILED(m_swapchain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)&backbuffer)))
|
||||
{
|
||||
m_backbuffer = new GSTexture11(backbuffer);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue