Browse Source

shaderpipeline: Fix bug in ShaderModuleSpirV::strip()

rdb 5 years ago
parent
commit
045b2c19f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/shaderpipeline/shaderModuleSpirV.cxx

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

@@ -802,6 +802,7 @@ strip() const {
   InstructionStream copy(words, 5);
 
   // Copy all non-debug instructions to the new vector.
+  words += 5;
   while (words < end) {
     uint16_t wcount = words[0] >> SpvWordCountShift;
     SpvOp opcode = (SpvOp)(words[0] & SpvOpCodeMask);