-#include <math.h>
+#include <GL/glew.h>
#include <assert.h>
+#include <algorithm>
#include "dither_effect.h"
+#include "effect_util.h"
#include "util.h"
-#include "opengl.h"
namespace {
{
Effect::set_gl_state(glsl_program_num, prefix, sampler_num);
+ assert(width > 0);
+ assert(height > 0);
+ assert(num_bits > 0);
+
if (width != last_width || height != last_height || num_bits != last_num_bits) {
update_texture(glsl_program_num, prefix, sampler_num);
last_width = width;