Merge pull request #14803 from super626/v3.10

Fix NavMeshDebugDraw bug on iphone5s
This commit is contained in:
pandamicro 2015-12-25 18:41:42 +08:00
commit eea1c814df
1 changed files with 4 additions and 4 deletions

View File

@ -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();