From 530354ca674976aec979ff9ed1d030a34ffd5e91 Mon Sep 17 00:00:00 2001 From: boyu0 Date: Mon, 31 Mar 2014 10:21:54 +0800 Subject: [PATCH] fix box2d dynamic tree draws --- tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp b/tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp index b904ee6e87..e39dafb36e 100644 --- a/tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp +++ b/tests/cpp-tests/Classes/Box2DTestBed/GLES-Render.cpp @@ -242,9 +242,9 @@ void GLESDebugDraw::DrawAABB(b2AABB* aabb, const b2Color& color) }; glVertexAttribPointer(GLProgram::VERTEX_ATTRIB_POSITION, 2, GL_FLOAT, GL_FALSE, 0, glVertices); - glDrawArrays(GL_LINE_LOOP, 0, 8); + glDrawArrays(GL_LINE_LOOP, 0, 4); - CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(1,8); + CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(1,4); CHECK_GL_ERROR_DEBUG(); }