qimageinterface fixes, remove old lodepng, address more comments
This commit is contained in:
parent
93aab2c109
commit
391e552927
10 changed files with 32 additions and 7959 deletions
|
@ -24,11 +24,11 @@ bool CustomTexCache::IsTextureCached(u64 hash) const {
|
|||
return custom_textures.find(hash) != custom_textures.end();
|
||||
}
|
||||
|
||||
const CustomTexInfo& CustomTexCache::LookupTexture(const u64 hash) {
|
||||
const CustomTexInfo& CustomTexCache::LookupTexture(u64 hash) {
|
||||
return custom_textures.at(hash);
|
||||
}
|
||||
|
||||
void CustomTexCache::CacheTexture(const u64 hash, const std::vector<u8>& tex, u32 width,
|
||||
void CustomTexCache::CacheTexture(u64 hash, const std::vector<u8>& tex, u32 width,
|
||||
u32 height) {
|
||||
custom_textures[hash] = {width, height, tex};
|
||||
}
|
||||
|
|
|
@ -13,6 +13,9 @@ namespace Frontend {
|
|||
|
||||
class ImageInterface {
|
||||
public:
|
||||
ImageInterface() = default;
|
||||
~ImageInterface() = default;
|
||||
|
||||
// Error logging should be handled by the frontend
|
||||
virtual bool DecodePNG(std::vector<u8>& dst, u32& width, u32& height, const std::string& path) {
|
||||
LOG_CRITICAL(Frontend, "Attempted to decode PNG without an image interface!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue