summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/CustomVertexLayout.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/CustomVertexLayout.h')
-rw-r--r--Runtime/Graphics/CustomVertexLayout.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Runtime/Graphics/CustomVertexLayout.h b/Runtime/Graphics/CustomVertexLayout.h
index cd68a27..8f9dda8 100644
--- a/Runtime/Graphics/CustomVertexLayout.h
+++ b/Runtime/Graphics/CustomVertexLayout.h
@@ -12,6 +12,11 @@ struct CustomVertexLayout
GLuint buffer; // 创建时留空
std::vector<VertexAttributeDescriptor> attributes;
+ CustomVertexLayout()
+ {
+ int n = buffer;
+ }
+
// 重置pointer(startOffset)为0
void RestorePointer()
{