mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
overlays: Fix image size estimation
This commit is contained in:
parent
0a59cd1995
commit
ef561ad664
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ namespace rsx
|
|||
image_info_base() {}
|
||||
virtual ~image_info_base() {}
|
||||
virtual const u8* get_data() const = 0;
|
||||
virtual usz size_bytes() const { return static_cast<usz>(w * h * bpp); }
|
||||
virtual usz size_bytes() const { return static_cast<usz>(w * h * 4); } // UI images get converted to RGBA8
|
||||
|
||||
std::span<const u8> as_span() const { return { get_data(), size_bytes() }; }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue