Browse Source

shaderpipeline: Fix unit test failure

rdb 2 years ago
parent
commit
8bc75c2598
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/shaderpipeline/shaderCompiler.cxx

+ 4 - 0
panda/src/shaderpipeline/shaderCompiler.cxx

@@ -77,6 +77,10 @@ compile_now(Stage stage, const Filename &fn, BamCacheRecord *record) const {
     }
     }
   }
   }
 
 
+  if (record2 != nullptr) {
+    record2->add_dependent_file(vf);
+  }
+
   std::istream *in = vf->open_read_file(true);
   std::istream *in = vf->open_read_file(true);
   if (vf == nullptr) {
   if (vf == nullptr) {
     shader_cat.error()
     shader_cat.error()