changeset 20192:5c2564643de4 stable

only force indirect OpenGL rendering on Windows systems (bug #44916) * GLCanvas.cc (GLCanvas::GLCanvas): Limit indirect rendering to Windows systems.
author John W. Eaton <jwe@octave.org>
date Thu, 14 May 2015 14:47:05 -0400
parents e679dc89e64b
children 88efded31037 b0f7ee81d974
files libgui/graphics/GLCanvas.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/GLCanvas.cc	Thu May 14 04:02:45 2015 -0400
+++ b/libgui/graphics/GLCanvas.cc	Thu May 14 14:47:05 2015 -0400
@@ -38,8 +38,12 @@
 {
 
 GLCanvas::GLCanvas (QWidget* xparent, const graphics_handle& gh)
+#if defined (Q_OS_WIN32)
   : QGLWidget (QGLFormat (QGL::SampleBuffers | QGL::IndirectRendering),
                xparent), Canvas (gh)
+#else
+  : QGLWidget (QGLFormat (QGL::SampleBuffers), xparent), Canvas (gh)
+#endif
 {
   setFocusPolicy (Qt::ClickFocus);
 }