]> git.sesse.net Git - movit/commitdiff
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 600b939ace7107b3db9fc7295ef4b13655b5a41e..ec4f67edad5d628dcf0b9ab555d50cb4b747b957 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 ||