summaryrefslogtreecommitdiff
path: root/aa.h
diff options
context:
space:
mode:
Diffstat (limited to 'aa.h')
-rw-r--r--aa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/aa.h b/aa.h
index 9622696..a1bb51e 100644
--- a/aa.h
+++ b/aa.h
@@ -48,6 +48,7 @@ public:
samples(samples),
threads((threads > 0) ? threads : (int) std::thread::hardware_concurrency()) {
assert(samples >= 1);
+ assert(std::abs(1.0 * image_width / image_height - 1.0 * screen_hw / screen_hh) < 1e-8);
}
aa_viewport(const vec3<V> &cxyz,