VertexLoaderUID: remove global state dependency

This commit is contained in:
Pierre Bourdon
2014-07-24 01:12:12 +02:00
parent e91db62f1b
commit 20369743a4
2 changed files with 7 additions and 8 deletions

View File

@ -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())
{