Pārlūkot izejas kodu

refine comment, remove debug printout

David Rose 21 gadi atpakaļ
vecāks
revīzija
1b7175bcf4
1 mainītis faili ar 6 papildinājumiem un 9 dzēšanām
  1. 6 9
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 6 - 9
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";
-      }
     }
   }