diff --git a/spirv_cross.cpp b/spirv_cross.cpp index 35d62c41..65a8e3cc 100644 --- a/spirv_cross.cpp +++ b/spirv_cross.cpp @@ -2629,7 +2629,6 @@ bool Compiler::CombinedImageSamplerHandler::end_function_scope(const uint32_t *a auto &callee = compiler.get(args[2]); args += 3; - length -= 3; // There are two types of cases we have to handle, // a callee might call sampler2D(texture2D, sampler) directly where