src/gl/partrenderer.cpp

changeset 150
b6cbba6e29a1
parent 120
8c9fff699241
child 189
815fbaae9cb2
--- a/src/gl/partrenderer.cpp	Tue Nov 02 15:43:57 2021 +0200
+++ b/src/gl/partrenderer.cpp	Thu Mar 03 11:42:52 2022 +0200
@@ -38,7 +38,7 @@
 	model{model},
 	documents{documents},
 	colorTable{colorTable},
-	compiler{new gl::Compiler{this->colorTable, this}}
+	compiler{new gl::Compiler{model, this->colorTable, this}}
 {
 	this->setMouseTracking(true);
 	connect(model, &Model::rowsInserted, [&]{
@@ -117,7 +117,7 @@
 {
 	if (this->needBuild)
 	{
-		this->compiler->build(this->model, this->documents, this->renderPreferences);
+		this->compiler->build(this->documents, this->renderPreferences);
 		this->needBuild = false;
 	}
 	this->checkForGLErrors();

mercurial