Browse Source

glgsg: Delete multisample FBO properly

Related to #1166
rdb 4 years ago
parent
commit
7ac7a95843
1 changed files with 5 additions and 0 deletions
  1. 5 0
      panda/src/glstuff/glGraphicsBuffer_src.cxx

+ 5 - 0
panda/src/glstuff/glGraphicsBuffer_src.cxx

@@ -1697,6 +1697,11 @@ close_buffer() {
     _fbo.clear();
     _fbo.clear();
   }
   }
 
 
+  if (_fbo_multisample != 0) {
+    glgsg->_glDeleteFramebuffers(1, &_fbo_multisample);
+    _fbo_multisample = 0;
+  }
+
   report_my_gl_errors();
   report_my_gl_errors();
 
 
   // Release the Gsg
   // Release the Gsg