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

@ -287,10 +287,12 @@ bool GSDevice10::Reset(int w, int h)
memset(&scd, 0, sizeof(scd)); memset(&scd, 0, sizeof(scd));
m_swapchain->GetDesc(&scd); m_swapchain->GetDesc(&scd);
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;

File diff suppressed because it is too large Load Diff