diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-07-24 01:12:12 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-07-24 01:12:12 +0200 |
| commit | 20369743a433f6fb3c7286201e2e029065c78806 (patch) | |
| tree | f5ff1825662fc416f43a88c48786465501f53647 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | e91db62f1be2eeeb3fb3d5f71cfafcfcb98e13a5 (diff) | |
VertexLoaderUID: remove global state dependency
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index dd1196a48e..d8417042b7 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -104,8 +104,7 @@ static VertexLoader* RefreshLoader(int vtx_attr_group) { if ((s_attr_dirty >> vtx_attr_group) & 1) { - VertexLoaderUID uid; - uid.InitFromCurrentState(vtx_attr_group); + VertexLoaderUID uid(g_VtxDesc, g_VtxAttr[vtx_attr_group]); VertexLoaderMap::iterator iter = g_VertexLoaderMap.find(uid); if (iter != g_VertexLoaderMap.end()) { |
