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:
Jake.Stine 2010-01-28 13:07:06 +00:00
parent 934ec2c0ba
commit 8473436ae4
2 changed files with 980 additions and 976 deletions

View File

@ -289,9 +289,11 @@ bool GSDevice10::Reset(int w, int h)
m_swapchain->ResizeBuffers(scd.BufferCount, w, h, scd.BufferDesc.Format, 0); m_swapchain->ResizeBuffers(scd.BufferCount, w, h, scd.BufferDesc.Format, 0);
CComPtr<ID3D10Texture2D> backbuffer; 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); m_backbuffer = new GSTexture10(backbuffer);
} }
}
return true; return true;
} }

View File

@ -278,9 +278,11 @@ bool GSDevice11::Reset(int w, int h)
m_swapchain->ResizeBuffers(scd.BufferCount, w, h, scd.BufferDesc.Format, 0); m_swapchain->ResizeBuffers(scd.BufferCount, w, h, scd.BufferDesc.Format, 0);
CComPtr<ID3D11Texture2D> backbuffer; 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); m_backbuffer = new GSTexture11(backbuffer);
} }
}
return true; return true;
} }