From 8b79fb75b97251442452e7c3810c014f21a23fe3 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 9 Apr 2019 13:24:52 +0200 Subject: [PATCH] glgsg: allow multisampling on FBO even if host has no multisamples Fixes #601 --- panda/src/glstuff/glGraphicsBuffer_src.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/glstuff/glGraphicsBuffer_src.cxx b/panda/src/glstuff/glGraphicsBuffer_src.cxx index bdeb26345f..b85a3e76c1 100644 --- a/panda/src/glstuff/glGraphicsBuffer_src.cxx +++ b/panda/src/glstuff/glGraphicsBuffer_src.cxx @@ -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); }