From b0db10f77af78781171ab10792340ae5639fdb08 Mon Sep 17 00:00:00 2001 From: gered Date: Mon, 1 Apr 2013 11:41:21 -0400 Subject: [PATCH] fix incorrect glBindBuffer argument --- src/framework/graphics/graphicsdevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/graphics/graphicsdevice.cpp b/src/framework/graphics/graphicsdevice.cpp index 50b78d5..5a802b7 100644 --- a/src/framework/graphics/graphicsdevice.cpp +++ b/src/framework/graphics/graphicsdevice.cpp @@ -475,7 +475,7 @@ void GraphicsDevice::BindIBO(IndexBuffer *buffer) void GraphicsDevice::BindClientBuffer(IndexBuffer *buffer) { STACK_TRACE; - GL_CALL(glBindBuffer(GL_ARRAY_BUFFER, 0)); + GL_CALL(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)); } void GraphicsDevice::SetShaderVertexAttributes()