diff --git a/src/qt/glcanvas.cpp b/src/qt/glcanvas.cpp index 4361b344a3..3ee0275868 100644 --- a/src/qt/glcanvas.cpp +++ b/src/qt/glcanvas.cpp @@ -425,7 +425,6 @@ bool wxGLCanvas::ConvertWXAttrsToQtGL(const int *wxattrs, QGLFormat &format) { if (!wxattrs) return true; - return true; // set default parameters to false format.setDoubleBuffer(false); @@ -513,6 +512,10 @@ bool wxGLCanvas::ConvertWXAttrsToQtGL(const int *wxattrs, QGLFormat &format) // can we somehow indicate if it's not supported? break; + case WX_GL_MAJOR_VERSION: + format.setVersion ( v,0 ); + break; + default: wxLogDebug(wxT("Unsupported OpenGL attribute %d"), wxattrs[arg]);