Ver código fonte

Graphics buffer is no longer valid when closed.

aignacio_sf 19 anos atrás
pai
commit
9189ad4362
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      panda/src/glstuff/glGraphicsBuffer_src.cxx

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

@@ -514,5 +514,7 @@ close_buffer() {
   
   
   // Release the Gsg
   // Release the Gsg
   _gsg.clear();
   _gsg.clear();
+
+  _is_valid = false;
 }
 }