fix Physics3DDebugDrawer (#20160)

Since drawing type is ARRAY, should use  instead.
This commit is contained in:
coulsonwang 2019-09-24 14:28:44 +08:00 committed by minggo
parent 391780d5e2
commit 9ee9917047
2 changed files with 1 additions and 2 deletions

View File

@ -106,7 +106,7 @@ void Physics3DDebugDrawer::draw( Renderer *renderer)
_dirty = false;
}
_customCommand.setIndexDrawInfo(0, _buffer.size());
_customCommand.setVertexDrawInfo(0, _buffer.size());
CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(1, _buffer.size());

View File

@ -46,7 +46,6 @@ NS_CC_BEGIN
* @{
*/
class GLProgram;
class Renderer;
/** @brief Physics3DDebugDrawer: debug draw the physics object, used by Physics3DWorld */