mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
TextureCacheBase: Support dumping individual mipmaps.
This commit is contained in:
parent
a8ad59ee3e
commit
a5e68ab10e
9 changed files with 58 additions and 25 deletions
|
@ -163,13 +163,14 @@ void VertexManager::vFlush()
|
|||
// 0s are probably for no manual wrapping needed.
|
||||
PixelShaderManager::SetTexDims(i, tentry->native_width, tentry->native_height, 0, 0);
|
||||
|
||||
// TODO: Dump this code, it's redundant.
|
||||
if (g_ActiveConfig.iLog & CONF_SAVETEXTURES)
|
||||
{
|
||||
// save the textures
|
||||
char strfile[255];
|
||||
sprintf(strfile, "%stex%.3d_%d.tga",
|
||||
File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), g_Config.iSaveTargetId, i);
|
||||
tentry->Save(strfile);
|
||||
tentry->Save(strfile, 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue