summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp b/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp
index 2b93952d8b..aac013a2d2 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp
@@ -139,8 +139,7 @@ bool FifoCommandRunnable()
{
iCommandSize = 1 + 2;
u16 numVertices = DataPeek16(1);
- VertexLoader& vtxLoader = g_VertexLoaders[Cmd & GX_VAT_MASK];
- iCommandSize += numVertices * vtxLoader.ComputeVertexSize();
+ iCommandSize += numVertices * VertexLoaderManager::GetVertexSize(Cmd & GX_VAT_MASK);
}
else
{