From 2b90882fadc15e0216982ea76eec330d2cf761c4 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 29 May 2013 16:29:16 +0000 Subject: [PATCH] --- Common/CreateFile.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Common/CreateFile.cpp b/Common/CreateFile.cpp index 285af09ec8..8ea4ce58f1 100644 --- a/Common/CreateFile.cpp +++ b/Common/CreateFile.cpp @@ -152,11 +152,10 @@ static PixelBuffer *GetCompositePixelBuffer(GLenum format, GLenum type) (FlGui::instance()->getCurrentOpenglWindow()->getDrawContext()); newg->show(); openglWindow::setLastHandled(newg); - //waiting for the os to really make the window visible and to call the "draw" function - //on (some ?) linux if we do not wait here, the window is not ready - //and the picture cannot be generated - while(!newg->valid()) - Fl::wait(); + // waiting for the OS to really make the window visible and to call the + // draw() function on (some ?) linux; if we do not wait here, the window is + // not ready and the picture cannot be generated + while(!newg->valid()) Fl::wait(); } PixelBuffer *buffer; -- GitLab