Fixed framebuffer display not working on some GPUs in frame debugger.

This commit is contained in:
Jean-Philip Desjardins 2016-04-04 23:34:08 -04:00
parent 5cd6c33fff
commit caef900794

View File

@ -1314,7 +1314,7 @@ CGSH_Direct3D9::CFramebuffer::CFramebuffer(DevicePtr& device, uint32 basePtr, ui
{
HRESULT result = S_OK;
result = D3DXCreateTexture(device, width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8B8G8R8, D3DPOOL_DEFAULT, &m_renderTarget);
result = D3DXCreateTexture(device, width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &m_renderTarget);
assert(SUCCEEDED(result));
}