From: Steinar H. Gunderson Date: Sun, 20 Jan 2013 00:42:20 +0000 (+0100) Subject: Add some asserts to SingleResamplePassEffect, to make sure the resolutions makes... X-Git-Tag: 1.0~156 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=faf8ad966f79932fe890b564d39f96342ae1e844 Add some asserts to SingleResamplePassEffect, to make sure the resolutions makes sense. --- diff --git a/resample_effect.cpp b/resample_effect.cpp index 600b939..ec4f67e 100644 --- a/resample_effect.cpp +++ b/resample_effect.cpp @@ -348,6 +348,11 @@ void SingleResamplePassEffect::set_gl_state(GLuint glsl_program_num, const std:: { Effect::set_gl_state(glsl_program_num, prefix, sampler_num); + assert(input_width > 0); + assert(input_height > 0); + assert(output_width > 0); + assert(output_height > 0); + if (input_width != last_input_width || input_height != last_input_height || output_width != last_output_width ||