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:
Jake.Stine 2010-01-28 13:25:18 +00:00
parent 8473436ae4
commit c2c48b91c5
2 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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;