Skip to content

Commit 3fdd5bf

Browse files
committed
Minor refactoring
1 parent 1ffb856 commit 3fdd5bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/PMJ.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void Ray::GetValidOffsets(const int x_pos, const int y_pos, const std::vector<st
5656
GetValidXOffsets(x_pos, y_pos / 2, int(strata.size() / 2 - 1), strata, x_offsets);
5757
GetValidYOffsets(x_pos / 2, y_pos, int(strata.size() / 2), strata, y_offsets);
5858
}
59-
};
59+
}
6060

6161
Ray::aligned_vector<Ray::Ref::dvec2> Ray::GeneratePMJSamples(const unsigned int seed, const int sample_count,
6262
const int candidates_count) {
@@ -110,7 +110,7 @@ Ray::aligned_vector<Ray::Ref::dvec2> Ray::GeneratePMJSamples(const unsigned int
110110
std::vector<int> valid_offsets_x, valid_offsets_y;
111111
GetValidOffsets(x_pos, y_pos, strata, valid_offsets_x, valid_offsets_y);
112112

113-
if (candidates == 1 && false) {
113+
if (candidates == 1) {
114114
return get_sample_candidate(valid_offsets_x, valid_offsets_y);
115115
} else {
116116
Ref::dvec2 best_candidate = {};

0 commit comments

Comments
 (0)