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;
|
_dirtyBuffer = false;
|
||||||
}
|
}
|
||||||
for (auto &iter : _primitiveList){
|
for (auto &iter : _primitiveList){
|
||||||
|
if (iter->type == GL_POINTS)
|
||||||
|
continue;
|
||||||
|
|
||||||
_stateBlock->setDepthWrite(iter->depthMask);
|
_stateBlock->setDepthWrite(iter->depthMask);
|
||||||
if (iter->type == GL_POINTS){
|
if (iter->type == GL_LINES){
|
||||||
//glPointSize(iter->size);
|
|
||||||
}
|
|
||||||
else if (iter->type == GL_LINES){
|
|
||||||
glLineWidth(iter->size);
|
glLineWidth(iter->size);
|
||||||
}
|
}
|
||||||
_stateBlock->bind();
|
_stateBlock->bind();
|
||||||
|
|
Loading…
Reference in New Issue