ソースを参照

shaderpipeline: Minor follow-up correction to remove_unused_variables

rdb 2 年 前
コミット
c58e39fb96
1 ファイル変更1 行追加0 行削除
  1. 1 0
      panda/src/shaderpipeline/shaderModuleSpirV.cxx

+ 1 - 0
panda/src/shaderpipeline/shaderModuleSpirV.cxx

@@ -918,6 +918,7 @@ remove_unused_variables() {
             && (op.args[i] & 0xff000000) != 0) {
           ++i;
         }
+        ++i;
         // Remove the deleted IDs from the entry point interface.
         while (i < (*it).nargs) {
           if (delete_ids.count((*it).args[i])) {