openscad/openscad — pull request #173 by donbright (2012-08-09 02:28:00+00:00)
Title: Issue160

this is a workaround for a bug in wine + qt + certain driver where the image is not being displayed in the draw window. the patch only affects systems running under wine.

the fix is to detect if we are running under wine, and if so, then call swapBuffers() at the end of every GLView::paintGL()

under non-win32 systems, the compiler should optimize it out.

under 'real windows', it adds a single boolean variable check to every paintGL() call.