summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-06 23:14:00 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-06 23:14:00 +0100
commitaa31529ad8ee32f1fb53d442337cebed9cefc1c0 (patch)
treeffa0b6350b69ef2102e423e8ab3c062695dc0d53
parent32b03e27a35fdb42526ea72ff3fe6548dc77fe32 (diff)
Try asking for GL 3.
-rw-r--r--src/wx/gl_view.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/gl_view.cc b/src/wx/gl_view.cc
index dadc1c9b2..1d6ac26d0 100644
--- a/src/wx/gl_view.cc
+++ b/src/wx/gl_view.cc
@@ -35,8 +35,15 @@
using std::cout;
using boost::shared_ptr;
+int const attrib_list[] = {
+ WX_GL_RGBA,
+ WX_GL_DOUBLEBUFFER,
+ WX_GL_MAJOR_VERSION,
+ 3
+};
+
GLView::GLView (wxWindow *parent)
- : wxGLCanvas (parent, wxID_ANY, 0, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE)
+ : wxGLCanvas (parent, wxID_ANY, attrib_list, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE)
{
_context = new wxGLContext (this);
Bind (wxEVT_PAINT, boost::bind(&GLView::paint, this, _1));