mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user