Commit 194aa735 by Kai Westerkamp

debug output

parent 14f6e020
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
QLoggingCategory::setFilterRules("subdiv.trace.debug=false\n"); QLoggingCategory::setFilterRules("mesh.debug=false\n"
"mesh.render.debug=false\n"
"subdiv.debug=true\n"
"subdiv.trace.debug=false\n");
// If you want to enable debug output for some categories use something like this: // If you want to enable debug output for some categories use something like this:
//QLoggingCategory::setFilterRules("*.debug=false\n" //QLoggingCategory::setFilterRules("*.debug=false\n"
......
...@@ -476,7 +476,7 @@ void Mesh::renderMesh(QOpenGLShaderProgram *shader, int index, int subdivision, ...@@ -476,7 +476,7 @@ void Mesh::renderMesh(QOpenGLShaderProgram *shader, int index, int subdivision,
f->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, depthEntry->IB_regular_handle); f->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, depthEntry->IB_regular_handle);
f->glPatchParameteri(GL_PATCH_VERTICES, 12); f->glPatchParameteri(GL_PATCH_VERTICES, 12);
f->glDrawElements(GL_PATCHES, depthEntry->indices_regular.size(), GL_UNSIGNED_INT, 0); f->glDrawElements(GL_PATCHES, depthEntry->indices_regular.size(), GL_UNSIGNED_INT, 0);
qCDebug(log_mesh)<<"Patches "<<entry->indices_regular.size()/12<<" Subdivision Level: "<< subdivision; // qCDebug(log_mesh_render)<<"Patches "<<entry->indices_regular.size()/12<<" Subdivision Level: "<< subdivision;
} }
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment