Skip to content

Commit

Permalink
Now uses core profile for gl widget
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellGarwood committed Feb 7, 2020
1 parent e292e8f commit abe0ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions SPIERSview/src/gl3widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ GlWidget::GlWidget(QWidget *parent)
#endif

surfaceFormat.setRenderableType(QSurfaceFormat::OpenGL);
surfaceFormat.setProfile(QSurfaceFormat::CoreProfile);
setFormat(surfaceFormat);

// Create new GL scale grid
Expand Down
1 change: 1 addition & 0 deletions SPIERSview/src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ MainWindow::MainWindow(QWidget *parent)
ui->actionNo_Stereo->setChecked(true);

gl3widget = new GlWidget(ui->frameVTK);

gllayout = new QHBoxLayout;
gllayout->addWidget(gl3widget);
gllayout->setSpacing(2);
Expand Down

0 comments on commit abe0ebf

Please sign in to comment.