summaryrefslogtreecommitdiff
path: root/Runtime/Graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics')
-rw-r--r--Runtime/Graphics/CustomVertexLayout.h2
-rw-r--r--Runtime/Graphics/SharedVertexBuffer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Runtime/Graphics/CustomVertexLayout.h b/Runtime/Graphics/CustomVertexLayout.h
index d72c71d..cd68a27 100644
--- a/Runtime/Graphics/CustomVertexLayout.h
+++ b/Runtime/Graphics/CustomVertexLayout.h
@@ -13,7 +13,7 @@ struct CustomVertexLayout
std::vector<VertexAttributeDescriptor> attributes;
// ÖØÖÃpointer£¨startOffset£©Îª0
- void ResetPointer()
+ void RestorePointer()
{
for (int i = 0; i < attributes.size(); ++i)
{
diff --git a/Runtime/Graphics/SharedVertexBuffer.cpp b/Runtime/Graphics/SharedVertexBuffer.cpp
index e787630..976fb70 100644
--- a/Runtime/Graphics/SharedVertexBuffer.cpp
+++ b/Runtime/Graphics/SharedVertexBuffer.cpp
@@ -173,7 +173,7 @@ void SharedVertexBuffer::DrawChunk(CustomVertexLayout& layout)
VertexLayout::SetupCustomVertexLayout(layout);
- layout.ResetPointer();
+ layout.RestorePointer();
const void* indexPtr = m_CurIB ? 0 : (m_CurIBData.empty() ? 0 : &m_CurIBData[0]);