Use wxWidgets 3.0.x+ constructor for glcanvas.

This commit is contained in:
Joseph Lenox 2018-07-17 17:54:19 -05:00
parent a9b3b0ab7f
commit 4b130e793b
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
namespace Slic3r { namespace GUI {
Scene3D::Scene3D(wxWindow* parent, const wxSize& size) :
wxGLCanvas(parent, wxID_ANY, wxDefaultPosition, size)
wxGLCanvas(parent, wxID_ANY, nullptr, wxDefaultPosition, size)
{
this->glContext = new wxGLContext(this);

View File

@ -4,7 +4,8 @@
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/glcanvas.h>
#include <wx/glcanvas.h>
#include "Settings.hpp"
#include "Point.hpp"
#include "3DScene.hpp"