diff libgui/graphics/GLCanvas.cc @ 20203:17542843a20b stable

use indirect rendering for OpenGL graphics (bug #44916) * GLCanvas.cc (GLCanvas::GLCanvas): Use indirect rendering.
author John W. Eaton <jwe@octave.org>
date Wed, 06 May 2015 14:51:30 -0400
parents f0e61a67ad9f
children 5c2564643de4
line wrap: on
line diff
--- a/libgui/graphics/GLCanvas.cc	Mon May 04 21:50:57 2015 -0700
+++ b/libgui/graphics/GLCanvas.cc	Wed May 06 14:51:30 2015 -0400
@@ -38,7 +38,8 @@
 {
 
 GLCanvas::GLCanvas (QWidget* xparent, const graphics_handle& gh)
-  : QGLWidget (QGLFormat(QGL::SampleBuffers), xparent), Canvas (gh)
+  : QGLWidget (QGLFormat (QGL::SampleBuffers | QGL::IndirectRendering),
+               xparent), Canvas (gh)
 {
   setFocusPolicy (Qt::ClickFocus);
 }