mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 23:06:13 +08:00
Yet another fix of the preceding commit.
This commit is contained in:
parent
a19a506ad8
commit
7cef1292b2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user