mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core: Remove ImageWrite and get rid of -Wmissing-declarations warnings
This commit is contained in:
@ -5,10 +5,10 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include "Common/Assert.h"
|
||||
#include "Common/Image.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "VideoCommon/AbstractStagingTexture.h"
|
||||
#include "VideoCommon/AbstractTexture.h"
|
||||
#include "VideoCommon/ImageWrite.h"
|
||||
#include "VideoCommon/RenderBase.h"
|
||||
|
||||
AbstractTexture::AbstractTexture(const TextureConfig& c) : m_config(c)
|
||||
@ -48,9 +48,10 @@ bool AbstractTexture::Save(const std::string& filename, unsigned int level)
|
||||
if (!readback_texture->Map())
|
||||
return false;
|
||||
|
||||
return TextureToPng(reinterpret_cast<const u8*>(readback_texture->GetMappedPointer()),
|
||||
static_cast<int>(readback_texture->GetMappedStride()), filename, level_width,
|
||||
level_height);
|
||||
return Common::SavePNG(filename,
|
||||
reinterpret_cast<const u8*>(readback_texture->GetMappedPointer()),
|
||||
Common::ImageByteFormat::RGBA, level_width, level_height,
|
||||
static_cast<int>(readback_texture->GetMappedStride()));
|
||||
}
|
||||
|
||||
bool AbstractTexture::IsCompressedFormat(AbstractTextureFormat format)
|
||||
|
Reference in New Issue
Block a user