From 72812a7b47f90f9460e54e8149ba9199a7841244 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 2 Nov 2021 19:44:01 +0800 Subject: ! Text mesh done --- Runtime/Graphics/DynamicVertexBuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics/DynamicVertexBuffer.h') diff --git a/Runtime/Graphics/DynamicVertexBuffer.h b/Runtime/Graphics/DynamicVertexBuffer.h index 12aa48c..6f21010 100644 --- a/Runtime/Graphics/DynamicVertexBuffer.h +++ b/Runtime/Graphics/DynamicVertexBuffer.h @@ -35,8 +35,8 @@ private: void Clean(); - // 如果数据大小超过这个限制,用内存数据,而不是glBufferData - enum { DataBufferThreshold = 1024 }; + // 如果数据大小小于这个限制,用内存数据,而不是glBufferData + static const int kDataBufferThreshold = 1024; GPU::DataBuffer *m_CurVB; GPU::DataBuffer *m_CurIB; @@ -52,4 +52,4 @@ private: uint m_CurVertexCount; uint m_CurIndexCount; -}; +}; \ No newline at end of file -- cgit v1.1-26-g67d0