Cycles: Add strict assert when assigning input socket stack offset

This commit is contained in:
Sergey Sharybin 2018-12-11 14:34:28 +01:00
parent b45b082531
commit ece109dd60
1 changed files with 1 additions and 0 deletions

View File

@ -246,6 +246,7 @@ int SVMCompiler::stack_assign(ShaderInput *input)
if(input->stack_offset == SVM_STACK_INVALID) {
if(input->link) {
/* linked to output -> use output offset */
assert(input->link->stack_offset != SVM_STACK_INVALID);
input->stack_offset = input->link->stack_offset;
}
else {