From 1b7175bcf465c2f08fd1ead9d04709d6c364d2e5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 18 Dec 2004 00:14:14 +0000 Subject: [PATCH] refine comment, remove debug printout --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index dec811833e..ea44976659 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -402,16 +402,13 @@ reset() { GLint sample_buffers; GLP(GetIntegerv)(GL_SAMPLE_BUFFERS, &sample_buffers); if (sample_buffers != 1) { + // Even if the API supports multisample, we might have ended up + // with a framebuffer that doesn't have any multisample bits. + // (It's also possible the graphics card doesn't provide any + // framebuffers with multisample.) In this case, we don't + // really support the multisample API's, since they won't do + // anything. _supports_multisample = false; - if (GLCAT.is_debug()) { - GLCAT.debug() - << "Selected frame buffer does not provide antialiasing support.\n"; - } - } else { - if (GLCAT.is_debug()) { - GLCAT.debug() - << "Selected frame buffer provides antialiasing support.\n"; - } } }