diff options
author | chai <chaifix@163.com> | 2021-10-31 19:52:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 19:52:03 +0800 |
commit | 9e0ad4279c8ccf2f419694e4ca15a1372e8b20d6 (patch) | |
tree | 8dd4a0e18f33f907ad81d8c12468e4a7da1248c1 | |
parent | e5ffcfb43231c55c1cdd71566e622de7583160a9 (diff) |
*rename function name
-rw-r--r-- | Data/Editor.exe | bin | 2385408 -> 0 bytes | |||
-rw-r--r-- | Runtime/Graphics/CustomVertexLayout.h | 2 | ||||
-rw-r--r-- | Runtime/Graphics/SharedVertexBuffer.cpp | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/Data/Editor.exe b/Data/Editor.exe Binary files differdeleted file mode 100644 index e59406e..0000000 --- a/Data/Editor.exe +++ /dev/null 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]); |