# HG changeset patch # User Santeri Piippo # Date 1397760719 -10800 # Node ID 639a900999bc17292878effb056ce966a8c04a60 # Parent 56f1b77951c839736a71dbc4034221ea7426a3f9 - removed the debug code diff -r 56f1b77951c8 -r 639a900999bc src/glCompiler.cc --- a/src/glCompiler.cc Thu Apr 17 21:49:53 2014 +0300 +++ b/src/glCompiler.cc Thu Apr 17 21:51:59 2014 +0300 @@ -47,23 +47,6 @@ { GL_STACK_OVERFLOW, "The operation would have caused an overflow" }, }; -#include -#include - -#define CLOCK_INIT QTime t0; - -#define CLOCK_START \ -{ \ - t0 = QTime::currentTime(); \ -} - -#define CLOCK_TIME(A) \ -{ \ - fprint (stderr, A ": %1ms\n", t0.msecsTo (QTime::currentTime())); \ -} - -#define DEBUG_PRINT(...) fprint (stdout, __VA_ARGS__) - extern_cfg (Bool, gl_blackedges); extern_cfg (String, gl_bgcolor); static QList g_warnedColors; @@ -242,35 +225,11 @@ // Compile anything that still awaits it compileStaged(); - if (m_vboChanged[vbonum] == false) + if (not m_vboChanged[vbonum]) return; QVector vbodata; - /* - if (vbonum == vboNumber (VBOSF_Triangles, VBOCM_Surfaces)) - { - QFile f ("vbo.log"); - if (f.open (QIODevice::WriteOnly)) - { - for (auto it = m_objectInfo.begin(); it != m_objectInfo.end(); ++it) - { - if (it.key()->document() == getCurrentDocument()) - { - fprint (f, "----- #%1 (%2:%3)\n", it.key()->id(), - it.key()->document()->getDisplayName(), it.key()->lineNumber()); - const QVector& v = it.value().data[vbonum]; - - for (int i = 0; i < v.size() / 3; ++i) - fprint (f, "- %1, %2, %3\n", v[i * 3], v[1 * 3 + 1], v[1 * 3 + 2]); - } - } - - f.close(); - } - } - */ - for (auto it = m_objectInfo.begin(); it != m_objectInfo.end(); ++it) { if (it.key()->document() == getCurrentDocument() && it.key()->isHidden() == false)