mirror of https://github.com/axmolengine/axmol.git
issue #2087: [dispatcher] Reverts: glGetError --> CHECK_GL_ERROR_DEBUG.
This commit is contained in:
parent
60645a6702
commit
990b801b11
|
@ -91,8 +91,7 @@ void GLESDebugDraw::DrawSolidPolygon(const b2Vec2* old_vertices, int vertexCount
|
|||
|
||||
CC_INCREMENT_GL_DRAWS(2);
|
||||
|
||||
glGetError();
|
||||
// CHECK_GL_ERROR_DEBUG();
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
|
||||
delete[] vertices;
|
||||
}
|
||||
|
@ -160,8 +159,7 @@ void GLESDebugDraw::DrawSolidCircle(const b2Vec2& center, float32 radius, const
|
|||
|
||||
CC_INCREMENT_GL_DRAWS(2);
|
||||
|
||||
glGetError();
|
||||
// CHECK_GL_ERROR_DEBUG();
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
|
||||
delete[] glVertices;
|
||||
}
|
||||
|
@ -184,8 +182,7 @@ void GLESDebugDraw::DrawSegment(const b2Vec2& p1, const b2Vec2& p2, const b2Colo
|
|||
|
||||
CC_INCREMENT_GL_DRAWS(1);
|
||||
|
||||
glGetError();
|
||||
// CHECK_GL_ERROR_DEBUG();
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
}
|
||||
|
||||
void GLESDebugDraw::DrawTransform(const b2Transform& xf)
|
||||
|
@ -219,8 +216,7 @@ void GLESDebugDraw::DrawPoint(const b2Vec2& p, float32 size, const b2Color& colo
|
|||
|
||||
CC_INCREMENT_GL_DRAWS(1);
|
||||
|
||||
glGetError();
|
||||
// CHECK_GL_ERROR_DEBUG();
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
}
|
||||
|
||||
void GLESDebugDraw::DrawString(int x, int y, const char *string, ...)
|
||||
|
@ -249,7 +245,5 @@ void GLESDebugDraw::DrawAABB(b2AABB* aabb, const b2Color& color)
|
|||
|
||||
CC_INCREMENT_GL_DRAWS(1);
|
||||
|
||||
glGetError();
|
||||
// CHECK_GL_ERROR_DEBUG();
|
||||
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue