summaryrefslogtreecommitdiff
path: root/Runtime/Graphics
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-20 14:10:24 +0800
committerchai <chaifix@163.com>2021-11-20 14:10:24 +0800
commit74ca8143a7c2352425d549b681b2838bda5ee218 (patch)
tree5aad35e7312b7c1b54769091b30f47d8ad747acb /Runtime/Graphics
parent850d9c034792b96e2ff5ff3bbfbcc30661757aed (diff)
*misc
Diffstat (limited to 'Runtime/Graphics')
-rw-r--r--Runtime/Graphics/DynamicVertexBuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Runtime/Graphics/DynamicVertexBuffer.cpp b/Runtime/Graphics/DynamicVertexBuffer.cpp
index cb59a8b..8a5499a 100644
--- a/Runtime/Graphics/DynamicVertexBuffer.cpp
+++ b/Runtime/Graphics/DynamicVertexBuffer.cpp
@@ -192,11 +192,11 @@ void DynamicVertexBuffer::DrawChunk(CustomVertexLayout& layout)
g_FrameStats.AddTrianglesCount(m_CurIndexCount / 3);
break;
case Primitive_Line:
- glDrawElements(GL_LINE, m_CurIndexCount, indexFormat, indexPtr);
+ glDrawElements(GL_LINES, m_CurIndexCount, indexFormat, indexPtr);
g_FrameStats.AddDrawCall();
break;
case Primitive_Point:
- glDrawElements(GL_POINT, m_CurIndexCount, indexFormat, indexPtr);
+ glDrawElements(GL_POINTS, m_CurIndexCount, indexFormat, indexPtr);
g_FrameStats.AddDrawCall();
break;
}