mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Software: Fix mipmaps and uneven strides in SWTexture
I think this is only used for texture dumping, but this resolves some failed assertions and glitchy results.
This commit is contained in:
@ -29,11 +29,11 @@ public:
|
||||
void Load(u32 level, u32 width, u32 height, u32 row_length, const u8* buffer,
|
||||
size_t buffer_size) override;
|
||||
|
||||
const u8* GetData() const;
|
||||
u8* GetData();
|
||||
const u8* GetData(u32 layer, u32 level) const;
|
||||
u8* GetData(u32 layer, u32 level);
|
||||
|
||||
private:
|
||||
std::vector<u8> m_data;
|
||||
std::vector<std::vector<std::vector<u8>>> m_data;
|
||||
};
|
||||
|
||||
class SWStagingTexture final : public AbstractStagingTexture
|
||||
|
Reference in New Issue
Block a user