diff options
author | Keuin <[email protected]> | 2022-04-20 02:58:37 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-20 02:58:37 +0800 |
commit | 4758cf763f7f762dd8110fd6ed2b3de4a68cbd94 (patch) | |
tree | 3dac9461f51bedc053e14d90f8f52592ad189f27 /aa.h | |
parent | d8947e7a22e15c8f6b55fc0f38c9549be1e1df7e (diff) |
Assert screen and image are of the same aspect in aa_viewport::aa_viewport and basic_viewport::basic_viewport.
Diffstat (limited to 'aa.h')
-rw-r--r-- | aa.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, |