mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Explicitly declare context attributes for GL canvas
This commit is contained in:
parent
bdecd3c180
commit
15901589a5
1 changed files with 9 additions and 1 deletions
|
@ -4,7 +4,15 @@
|
||||||
|
|
||||||
GLGSFrame::GLGSFrame() : GSFrame("OpenGL")
|
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->SetSize(GetClientSize());
|
||||||
|
|
||||||
m_canvas->Bind(wxEVT_LEFT_DCLICK, &GSFrame::OnLeftDclick, this);
|
m_canvas->Bind(wxEVT_LEFT_DCLICK, &GSFrame::OnLeftDclick, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue