Merge "vwebp: activate GLUT double-buffering"

This commit is contained in:
Pascal Massimino 2017-05-10 05:46:20 +00:00 committed by Gerrit Code Review
commit e91546054d

View File

@ -378,13 +378,13 @@ static void HandleDisplay(void) {
}
}
glPopMatrix();
glFlush();
glutSwapBuffers();
}
static void StartDisplay(void) {
const int width = kParams.canvas_width;
const int height = kParams.canvas_height;
glutInitDisplayMode(GLUT_RGBA);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);
glutInitWindowSize(width, height);
glutCreateWindow("WebP viewer");
glutDisplayFunc(HandleDisplay);