From 8078aeed4e62c6b3aa48102554044768b402570c Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 1 Nov 2021 09:50:03 +0800 Subject: *misc --- Runtime/Graphics/CustomVertexLayout.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Runtime/Graphics/CustomVertexLayout.h') 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 attributes; + CustomVertexLayout() + { + int n = buffer; + } + // 重置pointer(startOffset)为0 void RestorePointer() { -- cgit v1.1-26-g67d0