buffer: pad some arrays for CMYK capability in linear sampler

parent da209085
......@@ -147,8 +147,8 @@ gegl_sampler_linear_get ( GeglSampler *self,
/*
* Load bottom row:
*/
gfloat bot_left[4];
gfloat bot_rite[4];
gfloat bot_left[5];
gfloat bot_rite[5];
for (gint c = 0; c < nc; c++)
bot_left[c] = *in_bptr++;
for (gint c = 0; c < nc; c++)
......@@ -160,7 +160,7 @@ gegl_sampler_linear_get ( GeglSampler *self,
{
const gfloat w_times_z = (gfloat) 1. - ( x + w_times_y );
gfloat newval[4];
gfloat newval[5];
for (gint c = 0; c < nc; c++)
newval[c] =
......
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