Selaa lähdekoodia

bug with unlock assertion

David Rose 16 vuotta sitten
vanhempi
sitoutus
ff8d5eaf77
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      panda/src/gobj/texture.cxx

+ 2 - 0
panda/src/gobj/texture.cxx

@@ -6131,6 +6131,8 @@ fillin(DatagramIterator &scan, BamReader *manager, bool has_rawdata) {
 ////////////////////////////////////////////////////////////////////
 void Texture::
 fillin_from(Texture *dummy) {
+  MutexHolder holder(_lock);
+
   // Use the setters instead of setting these directly, so we can
   // correctly avoid incrementing _properties_modified if none of
   // these actually change.  (Otherwise, we'd have to reload the