[Bf-blender-cvs] [87f598fd3f2] master: Cycles: Fix wrong row count for World MIS CDF calculation

Lukas Stockner noreply at git.blender.org
Tue Jun 26 03:36:00 CEST 2018


Commit: 87f598fd3f2b7968af0620b98f16bb86aa17d541
Author: Lukas Stockner
Date:   Tue Jun 26 05:34:30 2018 +0200
Branches: master
https://developer.blender.org/rB87f598fd3f2b7968af0620b98f16bb86aa17d541

Cycles: Fix wrong row count for World MIS CDF calculation

===================================================================

M	intern/cycles/render/light.cpp

===================================================================

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. */



More information about the Bf-blender-cvs mailing list