From faf8ad966f79932fe890b564d39f96342ae1e844 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 20 Jan 2013 01:42:20 +0100 Subject: [PATCH] Add some asserts to SingleResamplePassEffect, to make sure the resolutions makes sense. --- resample_effect.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 || -- 2.39.2