summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/DynamicVertexBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/DynamicVertexBuffer.cpp')
-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;
}