mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14803 from super626/v3.10
Fix NavMeshDebugDraw bug on iphone5s
This commit is contained in:
commit
eea1c814df
|
@ -148,11 +148,11 @@ void NavMeshDebugDraw::drawImplement(const cocos2d::Mat4& transform, uint32_t fl
|
|||
_dirtyBuffer = false;
|
||||
}
|
||||
for (auto &iter : _primitiveList){
|
||||
if (iter->type == GL_POINTS)
|
||||
continue;
|
||||
|
||||
_stateBlock->setDepthWrite(iter->depthMask);
|
||||
if (iter->type == GL_POINTS){
|
||||
//glPointSize(iter->size);
|
||||
}
|
||||
else if (iter->type == GL_LINES){
|
||||
if (iter->type == GL_LINES){
|
||||
glLineWidth(iter->size);
|
||||
}
|
||||
_stateBlock->bind();
|
||||
|
|
Loading…
Reference in New Issue