diff --git a/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h b/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h index 034909624da..aca57cd2ba9 100644 --- a/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h +++ b/GraphicsView/include/CGAL/Qt/Basic_viewer_qt.h @@ -470,7 +470,7 @@ protected: : fragment_source_color_comp; QOpenGLShader *fragment_shader_face= new QOpenGLShader(QOpenGLShader::Fragment); - if(!fragment_shader_face->compileSourceCode(fragment_source_color)) + if(!fragment_shader_face->compileSourceCode(source_)) { std::cerr<<"Compiling fragmentsource FAILED"<