mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
TextureCacheBase: Convert bound_textures from a C array to a std::array
Prevents array-to-pointer decay and simplifies some code.
This commit is contained in:
parent
4b5995a6e0
commit
57c21b9576
2 changed files with 5 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <tuple>
|
||||
|
@ -176,7 +177,7 @@ protected:
|
|||
alignas(16) u8* temp = nullptr;
|
||||
size_t temp_size = 0;
|
||||
|
||||
TCacheEntryBase* bound_textures[8] = {};
|
||||
std::array<TCacheEntryBase*, 8> bound_textures{};
|
||||
|
||||
private:
|
||||
typedef std::multimap<u32, TCacheEntryBase*> TexAddrCache;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue