diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-09-29 12:35:30 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-09-30 19:45:46 -0400 |
| commit | c6678687b08bec0b5aa8608b6b71c3ae1e4b8316 (patch) | |
| tree | 80a8c9aa157555f03c6878fbe0e7fb5e3d841131 /Source/Core/VideoBackends/Software/EfbInterface.cpp | |
| parent | 6a27f1bbf6422f898f3478e7d6edbf1fdba97c39 (diff) | |
ChunkFile: Provide additional helpers for C-style arrays
Gets rid of magic numbers in cases where the array size is known at compile time.
This is also useful for future entries that are stack allocated arrays as these
functions prevent incorrect sizes being provided.
Diffstat (limited to 'Source/Core/VideoBackends/Software/EfbInterface.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/EfbInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Software/EfbInterface.cpp b/Source/Core/VideoBackends/Software/EfbInterface.cpp index 2ad6dbbd86..ff9636d6c3 100644 --- a/Source/Core/VideoBackends/Software/EfbInterface.cpp +++ b/Source/Core/VideoBackends/Software/EfbInterface.cpp @@ -33,7 +33,7 @@ namespace EfbInterface void DoState(PointerWrap &p) { - p.DoArray(efb, EFB_WIDTH*EFB_HEIGHT*6); + p.DoArray(efb); } static void SetPixelAlphaOnly(u32 offset, u8 a) |
