Commit 7051c584 authored by Nicolas Robidoux's avatar Nicolas Robidoux Committed by Øyvind "pippin" Kolås

sampler: 1<<level = pow(2,level)

parent 4154b929
......@@ -392,7 +392,7 @@ gegl_sampler_get_from_mipmap (GeglSampler *const sampler,
gint dy;
gint sof;
const gdouble scale = 1. / (pow(2., (gdouble)level));
const gdouble scale = 1. / ( (gdouble) (1<<level) );
const gint bpp =
babl_format_get_bytes_per_pixel (sampler->interpolate_format);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment