mirror of https://github.com/vitalif/openscad
Merge branch 'master' of github.com:openscad/openscad
commit
f32e03dffb
|
@ -625,13 +625,19 @@ int gui(vector<string> &inputFiles, const fs::path &original_path, int argc, cha
|
||||||
updater->init();
|
updater->init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
QGLFormat fmt;
|
||||||
#if 0 /*** disabled by clifford wolf: adds rendering artefacts with OpenCSG ***/
|
#if 0 /*** disabled by clifford wolf: adds rendering artefacts with OpenCSG ***/
|
||||||
// turn on anti-aliasing
|
// turn on anti-aliasing
|
||||||
QGLFormat f;
|
fmt.setSampleBuffers(true);
|
||||||
f.setSampleBuffers(true);
|
fmt.setSamples(4);
|
||||||
f.setSamples(4);
|
|
||||||
QGLFormat::setDefaultFormat(f);
|
|
||||||
#endif
|
#endif
|
||||||
|
// The default SwapInterval causes very bad interactive behavior as
|
||||||
|
// waiting for the buffer swap seems to block mouse events. So the
|
||||||
|
// effect is that we can process mouse events at the frequency of
|
||||||
|
// the screen retrace interval causing them to queue up.
|
||||||
|
// (see https://bugreports.qt-project.org/browse/QTBUG-39370
|
||||||
|
fmt.setSwapInterval(0);
|
||||||
|
QGLFormat::setDefaultFormat(fmt);
|
||||||
|
|
||||||
set_render_color_scheme(arg_colorscheme, false);
|
set_render_color_scheme(arg_colorscheme, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue