Added OpenGL debug groups for most graphics operations when love is built in debug mode for iOS. The Xcode frame capture tool uses them to create nice visual groups for OpenGL function calls.

This commit is contained in:
Alex Szpakowski
2015-03-16 22:55:58 -03:00
parent 14cbc91e7f
commit 06ef263537
12 changed files with 64 additions and 0 deletions
+2
View File
@@ -328,6 +328,8 @@ Polyline::~Polyline()
void Polyline::draw()
{
OpenGL::TempDebugGroup debuggroup("Line draw");
GLushort *indices = nullptr;
// TODO: We should probably be using a reusable index buffer.