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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-11-05 15:57:14 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-11-05 15:57:14 +0400
commitb74ba5c59547e158c18a5a390d81e12b4c0ad41d (patch)
tree37ffebe897c34e35884db0576e86cd785c0bfcc2 /intern/cycles/render/tile.cpp
parentc4a422ffbb6ec5d8749099f1bca318cfd15e408b (diff)
Stupid copy-paste typo in tiles commit.
That was an example how you should not code :)
Diffstat (limited to 'intern/cycles/render/tile.cpp')
-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 74585dd5058..bbcdb47260e 100644
--- a/intern/cycles/render/tile.cpp
+++ b/intern/cycles/render/tile.cpp
@@ -135,7 +135,7 @@ void TileManager::gen_tiles_sliced()
int x = tile_x * tile_size.x;
int y = tile_y * tile_size.y;
int w = (tile_x == tile_w-1)? image_w - x: tile_size.x;
- int h = (tile_y == tile_h-1)? device_h - y: tile_size.x;
+ int h = (tile_y == tile_h-1)? device_h - y: tile_size.y;
state.tiles.push_back(Tile(tile_index, x, y + device_y, w, h, device));
}