Browse Source

glgsg: Fix crash if task chain was destroyed before GSG

rdb 2 months ago
parent
commit
57793822fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.h

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.h

@@ -1267,7 +1267,7 @@ public:
   pdeque<Fence> _fences;
   pdeque<Fence> _fences;
 
 
 #ifdef HAVE_THREADS
 #ifdef HAVE_THREADS
-  AsyncTaskChain *_async_chain;
+  PT(AsyncTaskChain) _async_chain;
 #endif
 #endif
 
 
   // Min job system pending a real job system
   // Min job system pending a real job system