mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Merge "vwebp: activate GLUT double-buffering"
This commit is contained in:
commit
e91546054d
@ -378,13 +378,13 @@ static void HandleDisplay(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
glFlush();
|
glutSwapBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void StartDisplay(void) {
|
static void StartDisplay(void) {
|
||||||
const int width = kParams.canvas_width;
|
const int width = kParams.canvas_width;
|
||||||
const int height = kParams.canvas_height;
|
const int height = kParams.canvas_height;
|
||||||
glutInitDisplayMode(GLUT_RGBA);
|
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);
|
||||||
glutInitWindowSize(width, height);
|
glutInitWindowSize(width, height);
|
||||||
glutCreateWindow("WebP viewer");
|
glutCreateWindow("WebP viewer");
|
||||||
glutDisplayFunc(HandleDisplay);
|
glutDisplayFunc(HandleDisplay);
|
||||||
|
Loading…
Reference in New Issue
Block a user