Add proper adapter enumeration in the DX11 plugin.

Set default video mode format to DXGI_FORMAT_R8G8B8A8_UNORM. This might fix FRAPS recording, but also decrease FPS; test both, please.
Add numerous TODOs


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5695 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
NeoBrainX
2010-06-14 19:20:41 +00:00
parent ab7302d2e1
commit 9a76be6edc
8 changed files with 124 additions and 42 deletions

View File

@ -42,11 +42,12 @@ void ReplaceTexture2D(ID3D11Texture2D* pTexture, const u8* buffer, unsigned int
}
else if (usage == D3D11_USAGE_DEFAULT)
{
if (texbufsize < 4*width*height)
if (texbufsize < 4*4*pitch*height)
{
// TODO: This memory needs to be freed as well..
if (texbuf) delete[] texbuf;
texbuf = new char[4*width*height];
texbufsize = 4*width*height;
texbuf = new char[4*4*pitch*height];
texbufsize = 4*4*pitch*height;
}
outptr = (void*)texbuf;
destPitch = width * 4;