Fix T74572: adaptive sampling still not working correct with shader AOVs
This commit is contained in:
parent
fd487b1f4e
commit
91d7f5d246
Notes:
blender-bot
2023-04-19 22:54:54 +02:00
Referenced by issue #74572, Adaptive sampling breaks value Shader AOV's
|
@ -500,16 +500,16 @@ void Film::device_update(Device *device, DeviceScene *dscene, Scene *scene)
|
|||
kfilm->pass_sample_count = kfilm->pass_stride;
|
||||
break;
|
||||
case PASS_AOV_COLOR:
|
||||
if (kfilm->pass_aov_value_num == 0) {
|
||||
if (kfilm->pass_aov_color_num == 0) {
|
||||
kfilm->pass_aov_color = kfilm->pass_stride;
|
||||
}
|
||||
kfilm->pass_aov_value_num++;
|
||||
kfilm->pass_aov_color_num++;
|
||||
break;
|
||||
case PASS_AOV_VALUE:
|
||||
if (kfilm->pass_aov_color_num == 0) {
|
||||
if (kfilm->pass_aov_value_num == 0) {
|
||||
kfilm->pass_aov_value = kfilm->pass_stride;
|
||||
}
|
||||
kfilm->pass_aov_color_num++;
|
||||
kfilm->pass_aov_value_num++;
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
|
|
Loading…
Reference in New Issue