mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Api was too confusing for people.
This commit is contained in:
@ -701,6 +701,7 @@ bool Renderer::SaveScreenshot(const std::string &filename, const TargetRectangle
|
||||
memcpy(data, map.pData, map.RowPitch * rc.GetHeight());
|
||||
|
||||
saved_png = TextureToPng(data, map.RowPitch, filename.c_str(), rc.GetWidth(), rc.GetHeight(), false);
|
||||
delete[] data;
|
||||
}
|
||||
|
||||
D3D::context->Unmap(s_screenshot_texture, 0);
|
||||
|
@ -71,6 +71,7 @@ bool TextureCache::TCacheEntry::Save(const char filename[], unsigned int level)
|
||||
memcpy(data, map.pData, map.RowPitch * desc.Height);
|
||||
|
||||
saved_png = TextureToPng(data, map.RowPitch, filename, desc.Width, desc.Height);
|
||||
delete[] data;
|
||||
}
|
||||
D3D::context->Unmap(pNewTexture, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user