Yet another fix of the preceding commit.

This commit is contained in:
bubnikv 2019-08-07 15:03:43 +02:00
parent a19a506ad8
commit 7cef1292b2

View file

@ -299,7 +299,7 @@ wxGLCanvas* GLCanvas3DManager::create_wxglcanvas(wxWindow *parent)
WX_GL_MIN_BLUE, 8, WX_GL_MIN_BLUE, 8,
// Requesting an 8 bit alpha channel. Interestingly, the NVIDIA drivers would most likely work with some alpha plane, but glReadPixels would not return // Requesting an 8 bit alpha channel. Interestingly, the NVIDIA drivers would most likely work with some alpha plane, but glReadPixels would not return
// the alpha channel on NVIDIA if not requested when the GL context is created. // the alpha channel on NVIDIA if not requested when the GL context is created.
WX_GL_MIN_ALPHA, 0, WX_GL_MIN_ALPHA, 8,
WX_GL_DEPTH_SIZE, 24, WX_GL_DEPTH_SIZE, 24,
WX_GL_SAMPLE_BUFFERS, GL_TRUE, WX_GL_SAMPLE_BUFFERS, GL_TRUE,
WX_GL_SAMPLES, 4, WX_GL_SAMPLES, 4,
@ -314,7 +314,7 @@ wxGLCanvas* GLCanvas3DManager::create_wxglcanvas(wxWindow *parent)
} }
if (! can_multisample()) if (! can_multisample())
attribList[4] = 0; attribList[12] = 0;
return new wxGLCanvas(parent, wxID_ANY, attribList, wxDefaultPosition, wxDefaultSize, wxWANTS_CHARS); return new wxGLCanvas(parent, wxID_ANY, attribList, wxDefaultPosition, wxDefaultSize, wxWANTS_CHARS);
} }