Skip to content
Snippets Groups Projects
Commit b81d7bef authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

enable stereo in fullscreen mode

parent e5dffc09
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,13 @@ FlGui::FlGui(int argc, char **argv)
// create fullscreen window
fullscreen = new openglWindow(100, 100, 100, 100);
fullscreen->mode(FL_RGB | FL_DEPTH | (CTX::instance()->db ? FL_DOUBLE : FL_SINGLE));
int mode = FL_RGB | FL_DEPTH | (CTX::instance()->db ? FL_DOUBLE : FL_SINGLE);
if(CTX::instance()->antialiasing) mode |= FL_MULTISAMPLE;
if(CTX::instance()->stereo) {
mode |= FL_DOUBLE;
mode |= FL_STEREO;
}
fullscreen->mode(mode);
fullscreen->end();
fullscreen->fullscreen();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment