glgsg: allow multisampling on FBO even if host has no multisamples

Fixes #601
This commit is contained in:
rdb 2019-04-09 13:24:52 +02:00
parent d89da168bb
commit 8b79fb75b9
1 changed files with 4 additions and 0 deletions

View File

@ -659,6 +659,10 @@ rebuild_bitplanes() {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
// Mark the GSG as supporting multisampling, so that it will respect an
// AntialiasAttrib with mode M_multisample.
glgsg->_supports_multisample = true;
} else {
glDisable(GL_MULTISAMPLE);
}