summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/VertexBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics/VertexBuffer.cpp')
-rw-r--r--Runtime/Graphics/VertexBuffer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Runtime/Graphics/VertexBuffer.cpp b/Runtime/Graphics/VertexBuffer.cpp
index 16b29d5..8973275 100644
--- a/Runtime/Graphics/VertexBuffer.cpp
+++ b/Runtime/Graphics/VertexBuffer.cpp
@@ -3,10 +3,8 @@
VertexBuffer::VertexBuffer(int vbSize, int ibSize, VertexBufferType type)
{
- m_VB = new GPU::DataBuffer();
- m_IB = new GPU::DataBuffer();
- //m_VB = GPU::ClaimBuffer(vbSize, GL_STATIC_DRAW);
- //m_IB = GPU::ClaimBuffer(ibSize, GL_STATIC_DRAW);
+ m_VB = GPU::ClaimBuffer(vbSize, GL_STATIC_DRAW);
+ m_IB = GPU::ClaimBuffer(ibSize, GL_STATIC_DRAW);
}
VertexBuffer::~VertexBuffer()