diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2018-06-26 06:34:30 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2018-06-26 06:35:30 +0300 |
commit | 87f598fd3f2b7968af0620b98f16bb86aa17d541 (patch) | |
tree | 60f3049787e9fb369043f90676b8e870a89b0ae9 /intern/cycles/render | |
parent | d53093953f8f3b58600cb19020ecbe0b5f254b52 (diff) |
Cycles: Fix wrong row count for World MIS CDF calculation
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/light.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index 20c6a53e58f..122c5dfb07a 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -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. */ |