Add some asserts to SingleResamplePassEffect, to make sure the resolutions makes...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 20 Jan 2013 00:42:20 +0000 (01:42 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 20 Jan 2013 00:42:20 +0000 (01:42 +0100)
resample_effect.cpp

index 600b939..ec4f67e 100644 (file)
@@ -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 ||