From 15901589a538cfc62f3dbc4397044ddc26dbbaf6 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 15 Mar 2016 20:07:43 +0300 Subject: [PATCH] Explicitly declare context attributes for GL canvas --- rpcs3/Gui/GLGSFrame.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rpcs3/Gui/GLGSFrame.cpp b/rpcs3/Gui/GLGSFrame.cpp index 908d454c36..c77edc67af 100644 --- a/rpcs3/Gui/GLGSFrame.cpp +++ b/rpcs3/Gui/GLGSFrame.cpp @@ -4,7 +4,15 @@ GLGSFrame::GLGSFrame() : GSFrame("OpenGL") { - m_canvas = new wxGLCanvas(this, wxID_ANY, NULL); + const int context_attrs[] = + { + WX_GL_RGBA, + WX_GL_DEPTH_SIZE, 16, + WX_GL_DOUBLEBUFFER, + 0 + }; + + m_canvas = new wxGLCanvas(this, wxID_ANY, context_attrs); m_canvas->SetSize(GetClientSize()); m_canvas->Bind(wxEVT_LEFT_DCLICK, &GSFrame::OnLeftDclick, this);