- fixed: use @surfacenum instead of @surfacevbo to GLCompiler::vboSize... this was causing these damn artifacts whose root cause I've been hunting for MONTHS

Thu, 17 Apr 2014 21:49:53 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 17 Apr 2014 21:49:53 +0300
changeset 715
56f1b77951c8
parent 714
b4a990f59a5e
child 716
639a900999bc

- fixed: use @surfacenum instead of @surfacevbo to GLCompiler::vboSize... this was causing these damn artifacts whose root cause I've been hunting for MONTHS

src/glCompiler.cc file | annotate | diff | comparison | revisions
src/glRenderer.cc file | annotate | diff | comparison | revisions
--- a/src/glCompiler.cc	Thu Apr 17 20:50:43 2014 +0300
+++ b/src/glCompiler.cc	Thu Apr 17 21:49:53 2014 +0300
@@ -334,9 +334,6 @@
 			assert (false);
 	}
 
-	if (poly.num == 3)
-		print ("compile triangle %1 for #%2\n", poly.origin, topobj->id());
-
 	for (int complement = 0; complement < VBOCM_NumComplements; ++complement)
 	{
 		const int vbonum			= vboNumber (surface, (EVBOComplement) complement);
--- a/src/glRenderer.cc	Thu Apr 17 20:50:43 2014 +0300
+++ b/src/glRenderer.cc	Thu Apr 17 21:49:53 2014 +0300
@@ -463,13 +463,11 @@
 {
 	int surfacenum = m_compiler->vboNumber (surface, VBOCM_Surfaces);
 	int colornum = m_compiler->vboNumber (surface, colors);
-
 	m_compiler->prepareVBO (surfacenum);
 	m_compiler->prepareVBO (colornum);
 	GLuint surfacevbo = m_compiler->vbo (surfacenum);
 	GLuint colorvbo = m_compiler->vbo (colornum);
-	GLsizei count = m_compiler->vboSize (surfacevbo) / 3;
-	print ("Count: %1\n", (int) count );
+	GLsizei count = m_compiler->vboSize (surfacenum) / 3;
 
 	if (count > 0)
 	{

mercurial