Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-08-09 23:55:46 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-08-09 23:55:46 +0400
commitbe7b4e26b19d705224dc6833892f792659662777 (patch)
treef489cce53f70a15457bc11b8826c080466cdb80c
parentfd263bf725f42f965fd203e257201ef131e20057 (diff)
Fix cycles not rendering with 1x1 resolution anymore, not so common for users
but nice for debugging.
-rw-r--r--intern/cycles/render/tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/tile.cpp b/intern/cycles/render/tile.cpp
index 55bbfeb3f1b..ea938943f93 100644
--- a/intern/cycles/render/tile.cpp
+++ b/intern/cycles/render/tile.cpp
@@ -189,7 +189,7 @@ list<Tile>::iterator TileManager::next_background_tile(int device, int tile_orde
int64_t cordx = max(1, params.width/resolution);
int64_t cordy = max(1, params.height/resolution);
- int64_t mindist = cordx * cordy;
+ int64_t mindist = INT_MAX;
int64_t centx = cordx / 2, centy = cordy / 2;