Dumping the efb_tex will not cause crash anymore, but the dumped image is always blank, so commented out since it causes lag anyways.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2605 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
49335efa71
commit
dde7f0104c
|
@ -694,11 +694,11 @@ void TextureMngr::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool
|
||||||
if(g_Config.bDumpEFBTarget)
|
if(g_Config.bDumpEFBTarget)
|
||||||
{
|
{
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
SaveTexture(StringFromFormat("%s/efb_frame_%i.tga", FULL_DUMP_TEXTURES_DIR, count++).c_str(), GL_TEXTURE_RECTANGLE_ARB, entry.texture, entry.w, entry.h);
|
SaveTexture(StringFromFormat("%s/efb_frame_%i.tga", FULL_DUMP_TEXTURES_DIR, count).c_str(), GL_TEXTURE_RECTANGLE_ARB, entry.texture, entry.w, entry.h);
|
||||||
//TODO: Fix this
|
//TODO: Fix this
|
||||||
//SaveTexture(StringFromFormat("%s/efb_tex.tga", FULL_DUMP_TEXTURES_DIR).c_str(), GL_TEXTURE_RECTANGLE_ARB,
|
//SaveTexture(StringFromFormat("%s/efb_tex_%i.tga", FULL_DUMP_TEXTURES_DIR, count++).c_str(), GL_TEXTURE_RECTANGLE_ARB,
|
||||||
// bFromZBuffer ? Renderer::ResolveAndGetFakeZTarget(source_rect) : Renderer::ResolveAndGetRenderTarget(source_rect),
|
// bFromZBuffer ? Renderer::ResolveAndGetFakeZTarget(source_rect) : Renderer::ResolveAndGetRenderTarget(source_rect),
|
||||||
// Renderer::GetTargetWidth(), Renderer::GetTargetHeight());
|
// Renderer::GetTargetWidth() * 2, Renderer::GetTargetHeight() * 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue