if( get_canvas() && !get_canvas()->get_video_on() ) {
clear(0);
if( mwindow->uses_opengl() ) {
+// this code is to idle rendering before drawing overlays on refresh frame
+// if this is not done, occationally opengl finishs late, and overwrites
+// the x11 refresh frame and the overlay is not visible. Rarely happens.
get_canvas()->unlock_window();
- get_canvas()->flush();
- get_canvas()->sync_display();
- mwindow->playback_3d->finish_output();
+ mwindow->playback_3d->finish_output(this);
get_canvas()->lock_window("CWindowCanvas::draw_refresh");
}
if( refresh_frame && refresh_frame->get_w()>0 && refresh_frame->get_h()>0 ) {