summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/glx/glut_swap.c')
-rw-r--r--src/glut/glx/glut_swap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glut/glx/glut_swap.c b/src/glut/glx/glut_swap.c
index 4831b8eb351..07a2da88a2c 100644
--- a/src/glut/glx/glut_swap.c
+++ b/src/glut/glx/glut_swap.c
@@ -18,6 +18,10 @@ glutSwapBuffers(void)
{
GLUTwindow *window = __glutCurrentWindow;
+ if (__glutPPMFile) {
+ __glutWritePPMFile();
+ }
+
if (window->renderWin == window->win) {
if (__glutCurrentWindow->treatAsSingle) {
/* Pretend the double buffered window is single buffered,