Disable multi-sampling with virgl (VirtualGL) on Linux.

Namely, on ChromeOS virgl flips red/blue channels at least on some computers with multi-sampling enabled.
It seems it is sufficient to disable multi-sampling after the OpenGL context is created.
This commit is contained in:
Vojtech Bubnik 2021-03-11 11:48:27 +01:00
parent 2494a8f384
commit 9c80c6a4af

View file

@ -256,6 +256,11 @@ bool OpenGLManager::init_gl()
}
if (valid_version) {
if (s_gl_info.get_renderer() == "virgl")
// Disable multi-sampling with virgl (VirtualGL) on Linux.
// Namely, on ChromeOS virgl flips red/blue channels at least on some computers with multi-sampling enabled.
// It seems it is sufficient to disable multi-sampling after the OpenGL context is created.
s_multisample = EMultisampleState::Disabled;
// load shaders
auto [result, error] = m_shaders_manager.init();
if (!result) {