Skip to content

Commit

Permalink
fixed regression introduced in bfa0405 ("small code optimizations").
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Apr 4, 2015
1 parent f50236d commit eccb3a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/appleseed/foundation/image/filteredtile.cpp
Expand Up @@ -103,6 +103,11 @@ void FilteredTile::add(
// Don't affect pixels outside the crop window.
footprint = AABB2i::intersect(footprint, m_crop_window);

// Bail out if the point does not fall inside the crop window.
// Only check the x coordinate; the y coordinate is checked in the loop below.
if (footprint.min.x > footprint.max.x)
return;

for (int ry = footprint.min.y; ry <= footprint.max.y; ++ry)
{
float* RESTRICT ptr = reinterpret_cast<float*>(pixel(footprint.min.x, ry));
Expand Down

0 comments on commit eccb3a4

Please sign in to comment.