Mercurial > octave-nkf
changeset 19671:5d1c7e967742 gui-release
Turn on OpenGL Multisampling for Qt plotting (bug #41819)
* GLCanvas.cc (GLCanvas::GLCanvas): In constructor, inherit from QGLWidget with
QGL::SampleBuffers enabled.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 29 Jan 2015 19:42:32 -0800 |
parents | 101ce4eaa56c |
children | a9e68144b4ae |
files | libgui/graphics/GLCanvas.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/GLCanvas.cc Sun Jan 25 20:03:17 2015 +0100 +++ b/libgui/graphics/GLCanvas.cc Thu Jan 29 19:42:32 2015 -0800 @@ -38,7 +38,7 @@ { GLCanvas::GLCanvas (QWidget* xparent, const graphics_handle& gh) - : QGLWidget (xparent), Canvas (gh) + : QGLWidget (QGLFormat(QGL::SampleBuffers), xparent), Canvas (gh) { setFocusPolicy (Qt::ClickFocus); }