Skip to content
Snippets Groups Projects
Commit 2b90882f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent 8ef1ee8c
No related branches found
No related tags found
No related merge requests found
...@@ -152,11 +152,10 @@ static PixelBuffer *GetCompositePixelBuffer(GLenum format, GLenum type) ...@@ -152,11 +152,10 @@ static PixelBuffer *GetCompositePixelBuffer(GLenum format, GLenum type)
(FlGui::instance()->getCurrentOpenglWindow()->getDrawContext()); (FlGui::instance()->getCurrentOpenglWindow()->getDrawContext());
newg->show(); newg->show();
openglWindow::setLastHandled(newg); openglWindow::setLastHandled(newg);
//waiting for the os to really make the window visible and to call the "draw" function // waiting for the OS to really make the window visible and to call the
//on (some ?) linux if we do not wait here, the window is not ready // draw() function on (some ?) linux; if we do not wait here, the window is
//and the picture cannot be generated // not ready and the picture cannot be generated
while(!newg->valid()) while(!newg->valid()) Fl::wait();
Fl::wait();
} }
PixelBuffer *buffer; PixelBuffer *buffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment