Fix flickering on some renderers

GLUT apparently doesn't do double buffers by default, (at least
sometimes) so we need to explicitly set it in init.
This commit is contained in:
Epicalert 2021-11-12 01:15:29 +08:00
parent eb4bf55cda
commit c06f6beae6
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,6 @@
## Bugs
- crash when eye goes outside of roi
- incorrect appdata location on Windows
- flickering on some renderers
# Whenever

View file

@ -94,8 +94,9 @@ void initGraphics () {
char *argv[1] = {(char*)"fc2d"};
glutInit(&argc, argv);
glutCreateWindow(PROJECT_NAME);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize(512, 512);
glutCreateWindow(PROJECT_NAME);
glewExperimental = GL_TRUE;
glewInit();