From b74ba5c59547e158c18a5a390d81e12b4c0ad41d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 5 Nov 2012 11:57:14 +0000 Subject: [PATCH] Stupid copy-paste typo in tiles commit. That was an example how you should not code :) --- intern/cycles/render/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }