Skip to content

Commit 9ee9917

Browse files
Mee-guminggo
authored andcommitted
fix Physics3DDebugDrawer (#20160)
Since drawing type is ARRAY, should use instead.
1 parent 391780d commit 9ee9917

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cocos/physics3d/CCPhysics3DDebugDrawer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void Physics3DDebugDrawer::draw( Renderer *renderer)
106106
_dirty = false;
107107
}
108108

109-
_customCommand.setIndexDrawInfo(0, _buffer.size());
109+
_customCommand.setVertexDrawInfo(0, _buffer.size());
110110

111111
CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(1, _buffer.size());
112112

cocos/physics3d/CCPhysics3DDebugDrawer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ NS_CC_BEGIN
4646
* @{
4747
*/
4848

49-
class GLProgram;
5049
class Renderer;
5150

5251
/** @brief Physics3DDebugDrawer: debug draw the physics object, used by Physics3DWorld */

0 commit comments

Comments
 (0)