diff options
| author | Mai <mathew1800@gmail.com> | 2022-11-23 04:40:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-23 04:40:53 +0000 |
| commit | cb232155d9160aad82a1cb4a9a13fda22d079293 (patch) | |
| tree | 59e78d80bd168ccc04849a4a9686239db384c4f6 /Source/Core/VideoCommon/VertexLoader_Normal.cpp | |
| parent | 31458259b67fe67d4feb0b2d425f629e3792fdf7 (diff) | |
| parent | e13094766d51c970deb2a00800e4dd033af25665 (diff) | |
Merge pull request #11298 from Pokechu22/vertexloader-no-DataReader
VertexLoader: Eliminate use of DataReader
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_Normal.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp index 3b685e0ca4..c713e4c9c6 100644 --- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp @@ -9,7 +9,6 @@ #include "Common/CommonTypes.h" #include "Common/EnumMap.h" -#include "VideoCommon/DataReader.h" #include "VideoCommon/VertexLoader.h" #include "VideoCommon/VertexLoaderManager.h" #include "VideoCommon/VertexLoaderUtils.h" @@ -43,7 +42,6 @@ template <typename T, u32 N> void ReadIndirect(VertexLoader* loader, const T* data) { static_assert(3 == N || 9 == N, "N is only sane as 3 or 9!"); - DataReader dst(g_vertex_manager_write_ptr, nullptr); for (u32 i = 0; i < N; ++i) { @@ -55,10 +53,9 @@ void ReadIndirect(VertexLoader* loader, const T* data) else if (i >= 6 && i < 9) VertexLoaderManager::binormal_cache[i - 6] = value; } - dst.Write(value); + DataWrite(value); } - g_vertex_manager_write_ptr = dst.GetPointer(); LOG_NORM(); } |
