Cycles: Fix wrong row count for World MIS CDF calculation
This commit is contained in:
parent
d53093953f
commit
87f598fd3f
@ -586,7 +586,7 @@ void LightManager::device_update_background(Device *device,
|
|||||||
double time_start = time_dt();
|
double time_start = time_dt();
|
||||||
if(max(res.x, res.y) < 512) {
|
if(max(res.x, res.y) < 512) {
|
||||||
/* Small enough resolution, faster to do single-threaded. */
|
/* Small enough resolution, faster to do single-threaded. */
|
||||||
background_cdf(0, res.x, res.x, res.y, &pixels, cond_cdf);
|
background_cdf(0, res.y, res.x, res.y, &pixels, cond_cdf);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Threaded evaluation for large resolution. */
|
/* Threaded evaluation for large resolution. */
|
||||||
|
Loading…
Reference in New Issue
Block a user