- cleanup

Fri, 18 Apr 2014 18:58:13 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 18 Apr 2014 18:58:13 +0300
changeset 718
a2cbef633673
parent 717
fdc285e5952f
child 719
f2cc5964f52d

- cleanup

src/glRenderer.cc file | annotate | diff | comparison | revisions
src/glRenderer.h file | annotate | diff | comparison | revisions
--- a/src/glRenderer.cc	Fri Apr 18 18:46:25 2014 +0300
+++ b/src/glRenderer.cc	Fri Apr 18 18:58:13 2014 +0300
@@ -1245,7 +1245,6 @@
 		selfloats << ((float) pixelptr[1]) / 255.0f;
 		selfloats << ((float) pixelptr[2]) / 255.0f;
 		selfloats << ((float) pixelptr[3]) / 255.0f;
-		print ("selection: %1\n", selfloats);
 
 		qint32 idx =
 			(*(pixelptr + 0) * 0x10000) +
@@ -1256,7 +1255,6 @@
 		if (idx == 0xFFFFFF)
 			continue; // White is background; skip
 
-		dvalof (idx);
 		LDObject* obj = LDObject::fromID (idx);
 		assert (obj != null);
 
@@ -1622,14 +1620,6 @@
 void GLRenderer::compileObject (LDObject* obj)
 {
 	compiler()->stageForCompilation (obj);
-
-	// Mark in known vertices of this object
-	/*
-	QList<Vertex> verts = getVertices (obj);
-	m_knownVerts << verts;
-	removeDuplicates (m_knownVerts);
-	*/
-
 	obj->setGLInit (true);
 }
 
--- a/src/glRenderer.h	Fri Apr 18 18:46:25 2014 +0300
+++ b/src/glRenderer.h	Fri Apr 18 18:58:13 2014 +0300
@@ -228,7 +228,6 @@
 		bool						m_rectdraw;
 		Vertex						m_rectverts[4];
 		QColor						m_bgcolor;
-		QList<Vertex>				m_knownVerts;
 
 		void           addDrawnVertex (Vertex m_hoverpos);
 		LDOverlay*     findOverlayObject (EFixedCamera cam);

mercurial