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