Fixed typo in variable name

This commit is contained in:
Chairn 2021-09-18 20:41:01 +02:00
parent 79dbbe2ee2
commit 635485de90
2 changed files with 6 additions and 6 deletions

View file

@ -1272,7 +1272,7 @@ int CGraphics_Threaded::CreateQuadContainer(bool AutomaticUpload)
void CGraphics_Threaded::QuadContainerChangeAutomaticUpload(int ContainerIndex, bool AutomaticUpload)
{
SQuadContainer &Container = m_QuadContainers[ContainerIndex];
Container.m_AutomicUpload = AutomaticUpload;
Container.m_AutomaticUpload = AutomaticUpload;
}
void CGraphics_Threaded::QuadContainerUpload(int ContainerIndex)
@ -1371,7 +1371,7 @@ void CGraphics_Threaded::QuadContainerAddQuads(int ContainerIndex, CQuadItem *pA
}
}
if(Container.m_AutomicUpload)
if(Container.m_AutomaticUpload)
QuadContainerUpload(ContainerIndex);
}
@ -1408,7 +1408,7 @@ void CGraphics_Threaded::QuadContainerAddQuads(int ContainerIndex, CFreeformItem
SetColor(&Quad.m_aVertices[3], 2);
}
if(Container.m_AutomicUpload)
if(Container.m_AutomaticUpload)
QuadContainerUpload(ContainerIndex);
}

View file

@ -770,13 +770,13 @@ class CGraphics_Threaded : public IEngineGraphics
struct SQuadContainer
{
SQuadContainer(bool AutomicUpload = true)
SQuadContainer(bool AutomaticUpload = true)
{
m_Quads.clear();
m_QuadBufferObjectIndex = m_QuadBufferContainerIndex = -1;
m_FreeIndex = -1;
m_AutomicUpload = AutomicUpload;
m_AutomaticUpload = AutomaticUpload;
}
struct SQuad
@ -791,7 +791,7 @@ class CGraphics_Threaded : public IEngineGraphics
int m_FreeIndex;
bool m_AutomicUpload;
bool m_AutomaticUpload;
};
std::vector<SQuadContainer> m_QuadContainers;
int m_FirstFreeQuadContainer;