- removed the debug code

Thu, 17 Apr 2014 21:51:59 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 17 Apr 2014 21:51:59 +0300
changeset 716
639a900999bc
parent 715
56f1b77951c8
child 717
fdc285e5952f

- removed the debug code

src/glCompiler.cc file | annotate | diff | comparison | revisions
--- 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 <QTime>
-#include <QFile>
-
-#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<short>		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<GLfloat> 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<GLfloat>& 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)

mercurial