Cycles: Fix wrong row count for World MIS CDF calculation

This commit is contained in:
Lukas Stockner 2018-06-26 05:34:30 +02:00
parent d53093953f
commit 87f598fd3f
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ void LightManager::device_update_background(Device *device,
double time_start = time_dt();
if(max(res.x, res.y) < 512) {
/* 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 {
/* Threaded evaluation for large resolution. */